-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
topic: documentationRelated to documentation for the projectRelated to documentation for the projecttype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
After updating the library and the FW accordingly, the receiving side (TTN) only gets empty messages. This is true for confirmed and for unconfirmed messages. OTAA join works, though.
I was using the old FW and MKRWAN1 before and the same code did work. I even have a serial debug output which clearly shows that the message is not actually empty:
Sending: d=8190,v=1.31,w=B - 64 3D 38 31 39 30 2C 76 3D 31 2E 33 31 2C 77 3D 42
This is the relevant code:
{
Serial.println();
Serial.print("Sending: " + messageStr + " - ");
for (unsigned int i = 0; i < messageStr.length(); i++)
{
Serial.print(messageStr[i] >> 4, HEX);
Serial.print(messageStr[i] & 0xF, HEX);
Serial.print(" ");
}
Serial.println();
int err;
modem.beginPacket();
modem.print(messageStr);
err = modem.endPacket(false); // do not request packet confirmation
if (err > 0)
{
Serial.println("Message sent!");
}
else
{
Serial.println("Error sending message :(");
Serial.println("(you may send a limited amount of messages per minute, depending on the signal strength");
Serial.println("it may vary from 1 message every couple of seconds to 1 message every minute)");
}
}```
Metadata
Metadata
Assignees
Labels
topic: documentationRelated to documentation for the projectRelated to documentation for the projecttype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
