I m following the Example with RAK3172. I have the following issue:
From the moment the confirmation fails, no successful message can be sent.
Sending is requested
+EVT:SEND_CONFIRMED_OK
Successfully sent
Data Packet:
0x74 0x65 0x73 0x74
Sending is requested
+EVT:SEND_CONFIRMED_FAILED(4)
Successfully sent
+EVT:TX_DONE
Data Packet:
0x74 0x65 0x73 0x74
Sending failed. <= from now up all messages will fail
I tried to setup unconfirmed messages using api.lorawan.cfm.set(0) and in that case the the app can obviously recover.
Data Packet:
0x54 0x65 0x73 0x74
Sending is requested
+EVT:SEND_CONFIRMED_FAILED(4)
Successfully sent
+EVT:TX_DONE
Data Packet:
0x54 0x65 0x73 0x74
Sending is requested
+EVT:SEND_CONFIRMED_OK
Successfully sent
Overall, the error messages are quite chaotic, for example the log says SEND_CONFIRMED_FAILED even if the message was sent as unconfirmed. Or the log entry +EVT:SEND_CONFIRMED_FAILED(4) follows the message Successfully sent, etc. This makes it harder to find the problem.
Anyway, IMO the failure of one message cannot cause the whole node to be inoperable. What am I doing wrong?
Remark: today I tested the same code with RAK4631 - same result. Whenever the message confirmation fails, the communication is broken. For me it’s an issue with RUI3.