Hello, in certain conditions I did not identified, the clal back procedure never reach the RXBEGIN branch .. in fact RX_FRAME seems to be directly == 0 ...
Do you see any reason for this ?
Paul
static int downlink_callback(uint8_t *rx_frame, uint8_t length)
{
if (rx_frame == 0) {
// Finished receiving
TD_SIGFOX_DOWNLINK_SetUserCallback(0);
tfp_printf("RX END\r\n");
// Done
return 1;
} else {
if (length == 0) {
// Start receiving
tfp_printf("RX BEGIN\r\n");
// Done
return 1;
}
// Received one good frame
tfp_dump("RX=", rx_frame, length);
// Done
return 1;
}
}