I am developing an application with the RAK3172 module in Brazil, using the AU915 region.
I configured DR = 2, ADR = 0 and tried to send:
api.lorawan.send(length, payload, fport, confirm, retry)
length = 50 bytes;
payload[50] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
fport = 21;
confirm = true;
retry = 3;
I’m getting “false” return.
I verified in the LORAWAN 1.0.3 reginal specification that for DR = 2, the maximum size is 51 bytes, as shown in the figure below.
I also did a test, reducing the payload size to 10 bytes and in this case it worked.
Please could you tell me why this error is happening?
Best Regards.