Cayenne-LPP avec NFC

Dependents:   er4_2022

Revision:
2:ac824f095591
Child:
3:a65959c9e3b9
diff -r 3747637941bf -r ac824f095591 README.md
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md	Fri Dec 02 17:00:21 2016 +0000
@@ -0,0 +1,25 @@
+# Cayenne Low Power Payload
+Payload builder library
+
+
+# Example use
+```
+#include 'CayenneLPP.h';
+
+#define MAX_SIZE 200; // depends on spreading factor and frequency used
+
+CayenneLPP Payload(MAX_SIZE);
+
+float temp = -4.1;
+float accel[] = {1.234, -1.234, 0};
+float rh = 30;
+float bp = 1014.1;
+
+Payload.reset();
+Payload.addTemperature(0, temp);
+Payload.addAccelerometer(1, accel[0], accel[1], accel[2]);
+Payload.addRelativeHumidity(3, rh);
+Payload.addBarometricPressure(4, bp);
+
+LORA_SEND(Payload.getBuffer(), Payload.getSize());
+```
\ No newline at end of file