Hi all ,
first of all greetings to all. I am new to the community, and this is the first post I am writing.
After searching many hours on the internet and on the forum, I have not found the information I need, so I decided to write this post.
I have made my first connection to The Things Network using the following tutorial:
Connecting MKR WAN 1300 to The Things Network (TTN)
With this example, the variable "payload" is created and sent to TTN. So far so good.
int var1 = 10;
byte payload = var1;
My problem arises when I want to send two variables in a single message. How can I send two variables in a single message?
For example:
int var1 = 10;
int var2 = 20;
Thank you very much in advance for your help.
Best regards