Nishant Garg

LORA_send function return value

Discussion created by Nishant Garg on Jun 5, 2018
Latest reply on Jun 5, 2018 by Clive Two.Zero



I am a bit confused by the LORA_send() function. It returns "false" even when a packet is successfully transmitted. The last few lines of the function are as such:


if( LoRaMacMcpsRequest( &mcpsReq ) == LORAMAC_STATUS_OK )
return false;
return true;


Shouldn't it return "true" if everything is OK at the end? If not, can someone explain why?


Thank you.