A first code example to get you started with the QW (GPS) Shield for SIGFOX development. It provides a serial connection to the modem over usb and transmits a SIGFOX message upon a button press.

Dependencies:   mbed QW_Sensors

HelloWorld QW Development kit

Preloaded code example

The QW development kits ship with this code example. This example allows you to talk straight to the TD1208 modem when using a virtual com port (note: local echo is off). This code-example also sends a SIGFOX message whenever you press a button. The message contains the button number and the measured environment temperature. The first byte is always 0x01.

/media/uploads/quicksand/packetformat.jpg

More information and other example code can be found on the component page by clicking the link below: https://developer.mbed.org/components/QW-SIGFOX-Development-Kit/

Revision:
3:4da15d6e1429
Parent:
2:a4a68a858624
Child:
4:69df63eeb91e
--- 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);