Lora Help

Hello everybody, I'm a student and i use lora in my school project but I have somes troubles...

I have to do a communication between two lora modules.

I use Grove Lora Radio module (in 868MHz). I found exmples on the constructor site so I use it and it works well. So I modify this program for my project and that's when I'm lost...

In the exemple, they they transmit characters, and I don't understant how to modify the program to transmit some data (from a potentiometer for exemple).

Can you help me please ?

Sorry if my english is not perfect :confused:

Thanks

In the exemple, they they transmit characters, and I don't understant how to modify the program to transmit some data (from a potentiometer for exemple).

If you can transmit a string, you can certainly use sprintf() to construct the string to send.

int potVal = analogRead(potPin);
char msg[24];
sprintf(msg, "Pot val: %d", potVal);
// Transmit msg

thank for your help !

it work perfectly ! :slight_smile: