Cayenne-LPP avec NFC
README.md
- Committer:
- eptak
- Date:
- 2016-12-02
- Revision:
- 2:ac824f095591
- Child:
- 3:a65959c9e3b9
File content as of revision 2:ac824f095591:
# 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()); ```