This software example demonstrates the downlink capabilities of the SIGFOX network.
Dependencies: QW_Sensors mbed
Fork of HelloWorld - QW Development kit by
Revision 2:a4a68a858624, committed 2016-04-27
- Comitter:
- quicksand
- Date:
- Wed Apr 27 08:12:42 2016 +0000
- Parent:
- 1:897a1b3f0955
- Child:
- 3:4da15d6e1429
- Commit message:
- Small update regarding temperature sensing. Only 5 samples are now used to calculate average instead of 40.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);
