libelium-dev wrote:
Hi,
That code is correct, which error exactly do you have?
Also please take a look into the RTC_7_set_waspmote_date example that manages the data introduced through the serial monitor.
http://www.libelium.com/development/was ... mote-date/Regards
The problem is that I enter for instance "4567", after that I divide this value into two uint8_t variables like this:
Code:
val0 = val & 0xff;
val1 = (val >> 8);
After doing that I send it in this way:
Code:
uint8_t trama[]={SWID1,SWID0};
error = LoRaWAN.sendConfirmed(PORT,trama,2);
But when I try to get again the "4567" value I don't get that, I get another different value without sense