mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
636 stars 208 forks source link

Add API to get temperature value of SX 127x chip #772

Open cyberman54 opened 3 years ago

cyberman54 commented 3 years ago

The semtech SX1276/77/78/79 chip, which LMIC is focused on, delivers a temperature value in register 0x3c. This gives the option to create some added value with LORAWAN nodes by estimating the surrounding temperature, maybe doing some edge computing with this values and generating payload from it, e.g. sending temperature threshold alarms to a backend.

Thus, we need an API to retrieve the temperature value from LMIC and an appropriate enhancement in radio.c to query the register value from the SX127x chip.

image

cyberman54 commented 3 years ago

Demo PR see https://github.com/mcci-catena/arduino-lmic/pull/774