I am using an Arduino MKR WAN 1310 to send temperaure data to TTN.
My Arduino sketch has these four lines of code to send the data to TTN.
byte payload = tempVariable;
delay(1000); // Gives it time to execute.
My payload decoder on TTN has these lines.
function Decoder(bytes, port)
var decoded = ;
My question is this. How do I modify both pieces of code to send another variable such as humidity.
I have scoured the internet for clues. Articles I have found are either too complex or too simple.
Can you help?