it is time to upgrade my beehive scales. Driven by a raspberry pi, they are bound to a power adapter and WiFi transmission.
I now decided to go with a battery/solar powered LoRa solution where nodes send data to a receiver which is connected to ESPEasy and is sending the received data via serial.
I couldn´t find any examples about the serial proxy plugin.
How do i process the data that is send to ESPEasy? Which would be the best syntax?
Let`s say i send the data with this syntax:
"node=1;weight=40;temp1=20;rssi=-30"
or
"node=2;weight=30;temp1=22;rssi=-35"
How do i process this data depending on the node.
Like:
Code: Select all
On Serial#receive Do
If %eventvalue1% = 1 //if node = 1
let,1,%eventvalue2% //store weight
let,2,%eventvalue3%. //store temperature
let,3,%eventvalue4%. //store rssi
Elseif %eventvalue1% = 2
let,4,%eventvalue2%
let,5,%eventvalue3%
let,6,%eventvalue4%
Endif
Endon
Using substring is probably not an option i guess since the length of the string is constantly changing....