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:
2:a4a68a858624
Parent:
1:897a1b3f0955
Child:
3:4da15d6e1429
--- a/main.cpp	Mon Apr 18 10:44:39 2016 +0000
+++ b/main.cpp	Wed Apr 27 08:12:42 2016 +0000
@@ -13,7 +13,7 @@
 InterruptIn SW2(PB_10);
 
 /*Temperature sensor */
-LinearTempSensor sensor(PA_0, 40);
+LinearTempSensor sensor(PA_0, 5);
 
 /* Function prototypes */
 void sw1interrupt();
@@ -96,6 +96,7 @@
 
     float    tAvg;
     char     command[32];
+    sensor.Sense();
     tAvg = sensor.GetAverageTemp();
     char temperature[6] ="";
     sprintf(temperature, "%3.1f", tAvg);