Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 3:4da15d6e1429, committed 2016-05-02
- Comitter:
- quicksand
- Date:
- Mon May 02 12:04:13 2016 +0000
- Parent:
- 2:a4a68a858624
- Child:
- 4:69df63eeb91e
- Commit message:
- Added header byte (0x01) to the sigfox packets that indicates this example.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Apr 27 08:12:42 2016 +0000
+++ b/main.cpp Mon May 02 12:04:13 2016 +0000
@@ -102,7 +102,7 @@
sprintf(temperature, "%3.1f", tAvg);
for(int i = 0; i < 5; i++)
if(temperature[i]==0) temperature[i] = ' ';
- sprintf(command, "AT$SF=42544e%x20%x%x%x%x%x43,2,0\n", btn+48, temperature[0],temperature[1],temperature[2],temperature[3],temperature[4]);
+ sprintf(command, "AT$SF=0142544e%x20%x%x%x%x%x43,2,0\n", btn+48, temperature[0],temperature[1],temperature[2],temperature[3],temperature[4]);
pc.printf("Sending pressed button %d and temperature %s C over Sigfox.\n", btn, temperature);
pc.printf("using modem command: %s", command);
modem_command_check_ok(command);
QW SIGFOX Development Kit