get humidity data and send to LoRa gateway
Dependencies: mbed X_NUCLEO_IKS01A2
Diff: main.cpp
- Revision:
- 4:4a012fc4ecc4
- Parent:
- 3:24204ec0bc36
- Child:
- 5:90900ae27136
--- a/main.cpp Wed Apr 22 14:59:39 2020 +0000 +++ b/main.cpp Wed Apr 22 15:00:19 2020 +0000 @@ -103,7 +103,7 @@ string val = ss.str(); for(int i=0; i < val.length(); i++) { - sprintf(val[2*i],"%X",*(val[i])); + sprintf(&val[2*i],"%X", val[i]); } at_send("1515", val);