projet capteur connecté ST/SE
Dependencies: HP206C mbed HMC5883L DHT DS1820
Revision 76:04941d128fff, committed 2018-10-15
- Comitter:
- MathieuM
- Date:
- Mon Oct 15 07:57:53 2018 +0000
- Parent:
- 75:9f6a6c7d4bea
- Child:
- 77:67faccef7f14
- Commit message:
- sigfox working
Changed in this revision
communication.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/communication.cpp Thu Oct 11 08:57:42 2018 +0000 +++ b/communication.cpp Mon Oct 15 07:57:53 2018 +0000 @@ -20,5 +20,6 @@ m[8] = (char)((pression & 0xff0000) >> 16); // b64 --- b71 m[9] = (char)((pression & 0x00ff00) >> 8); // b72 --- b79 m[10] = (char)(pression & 0x0000ff); // b80 --- b87 + //m[11] = '\0'; return m; } \ No newline at end of file
--- a/main.cpp Thu Oct 11 08:57:42 2018 +0000 +++ b/main.cpp Mon Oct 15 07:57:53 2018 +0000 @@ -51,12 +51,10 @@ pc.printf("T sol : %.2f C\r\n", solT); pc.printf("T air : %.2f C\r\n", airT); pc.printf("Mag : X:%d ; Y:%d ; Z:%d\n\r", magXYZ[0], magXYZ[1], magXYZ[2]); - pc.printf("Pression : %ul Pa\r\n", P); + pc.printf("Pression : %u Pa\r\n", P); + pc.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]); + wisol.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]); pc.printf("\n\r"); - for(int i=0; i<12 ; ++i) - { - pc.printf("%x ",msg[i]); - } - wait(2); + wait(WAIT_TIME - 7); } }