Software for Sensor box, read analogue values and send using nRF

Dependencies:   MMA8451Q mbed nRF24L01P

Fork of Acclerometer_node by Sensor CDT

Files at this revision

API Documentation at this revision

Comitter:
jaehughes
Date:
Tue Aug 11 17:28:38 2015 +0000
Parent:
9:934cae7f3290
Commit message:
With Xbee comms

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 934cae7f3290 -r 149ded218037 main.cpp
--- a/main.cpp	Mon Aug 10 16:11:23 2015 +0000
+++ b/main.cpp	Tue Aug 11 17:28:38 2015 +0000
@@ -33,10 +33,8 @@
     xbee.printf(publishString);
     pc.printf("publish");
     pc.printf(publishString);
-    //Spark.publish("measurements", publishString);
     sprintf(publishString, "%.1f, %.1f", presence_percentage, num_consecutive_runs);
-     xbee.printf(publishString);
-    //Spark.publish("measurements", publishString);
+    xbee.printf(publishString);
 }