티스토리 뷰
void loop() {
if(Serial.available()){
char rx11 = Serial.read();
RxString1 += rx11;
received11 = true;
time1 = millis();
}
if(millis() - time1 > 100){
if(received11){
received11 = false;
deserializeJson(doc, RxString1);
JsonObject json1 = doc.as<JsonObject>();
if(json1.containsKey("AA")){
String stringAA = json1["AA"];
Serial.print("AA-");
Serial.println(stringAA);
}else{
Serial.println(" --- C ---");
}
RxString1 = "";
}
}
}


반응형
'SWDesk > Firmware' 카테고리의 다른 글
| Arduino Library for MCP3426 (0) | 2021.06.12 |
|---|---|
| Arduino + JSON + Web Communication (1) | 2021.06.03 |
| [Python] Example for Sending Gmail with Attached Files (0) | 2021.01.18 |
| HC-05, 블루투스 통신 모듈 (0) | 2020.12.20 |
| [Arduino] JSON 예제 (0) | 2020.11.25 |
반응형
250x250
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- BSC
- 빌리언트
- 전류
- Video
- 티스토리챌린지
- 치매방지
- 심심풀이
- 오블완
- ServantClock
- image
- Innovations
- Hurdles
- BiliChild
- 배프
- 아두이노
- arduino
- 허들
- bilient
- 심심풀이치매방지기
- 전압
- DYOV
- 둎
- 빌리칠드
- 혁신
- 절연형
- Innovations&Hurdles
- Innovation&Hurdles
- 치매
- Decorator
- 혁신과허들
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함

