I was wondering if anyone could help me.
I have data coming in from lora gateway and the data is msg.payload : string
Now I know the format of the data is this.(provide from manufactures datasheet.)
Use the 1st 2nd and 5th points to calculate the temperature
Use the 3rd 4th and 6th points to calculate the Relative humidity
40e if I do a hex to decimal I get 1038. Then subtract 800 then divide by 10 and the answer is 23.8 DegC.
317 if I do a hex to decimal I get 791. Then subtract 250 then divide by 10 and the answer is 54.1 %RH
The above formula is provided by the manufacture
I was hoping someone could point me in the write direction on how to write this in a function module so I get 2 objects out one called temp and one called humidity.