티스토리 뷰
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
- 전압
- badp
- bilient
- 치매
- 배프
- Video
- 허들
- BSC
- 빌리언트
- 오블완
- Innovation&Hurdles
- arduino
- 전류
- Decorator
- ServantClock
- Hurdles
- Innovations&Hurdles
- 심심풀이
- 심심풀이치매방지기
- 혁신
- 아두이노
- Innovations
- 혁신과허들
- 티스토리챌린지
- 둎
- 치매방지
- 절연형
- DYOV
- image
- 전압전류모니터링
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함