No doubt Guys, here is the node assembled!
Datacake screen:
So far so good!
There are already implemented few new features:
1. Sleep current 0.9mA overall
2. Reset the device via sending downlink on Port2: FF FF FF FF FF FF
3. Set transmit period (in milliseconds) via downlink on Port2: 01 00 XX XX XX XX (XX XX XX XX - milliseconds coded in hex (big endian), ex. for 5 minutes = 300,000 ms = 00 04 93 E0)
4. Set measuring period (in minutes) via downlink as for now provided with LED_ON command in one 2-bytes downlink message on Port2: 01 XX - LED ON and measuring period = XX minutes, 00 XX - LED is OFF and measuring period = XX minutes This LED enchanced with FET transictor, so you may connect some load to be switched ON/OFF (see the schematic in PCB folder)
ex downlink payload:
function Encoder(measurements, port) {
return [measurements.LED_ON.value, measurements.MEASURE_PERIOD.value];
}