@@ -54,13 +54,16 @@ typedef enum {
5454} itsdk_lorawan_join_t ;
5555
5656typedef enum {
57- LORAWAN_SEND_QUEUED = 0 , // Message put in the sending queue (SUCCESS)
58- LORAWAN_SEND_SENT , // Message sent (SUCCESS)
59- LORAWAN_SEND_ACKED , // Message sent and Acked (SUCESS)
60- LORAWAN_SEND_RUNNING , // Message is in progress (asycn mode) (SUCCESS)
61- LORAWAN_SEND_NOT_JOINED , // The device has not joined message can be sent (ERROR)
62- LORAWAN_SEND_DUTYCYCLE , // Not sent - duty cycle constraints
63- LORAWAN_SEND_FAILED // Various other failure (ERROR)
57+ LORAWAN_SEND_QUEUED = 0 , // Message put in the sending queue (SUCCESS)
58+ LORAWAN_SEND_SENT , // Message sent (SUCCESS)
59+ LORAWAN_SEND_ACKED , // Message sent and Acked (SUCCESS)
60+ LORAWAN_SEND_ACKED_WITH_DOWNLINK , // Message sent and Acked with downlink (SUCCESS)
61+ LORAWAN_SEND_ACKED_WITH_DOWNLINK_PENDING , // Message sent and Acked with downlink & Other downlink is pending (SUCCESS)
62+ LORAWAN_SEND_RUNNING , // Message is in progress (async mode) (SUCCESS)
63+ LORAWAN_SEND_NOT_JOINED , // The device has not joined message can be sent (ERROR)
64+ LORAWAN_SEND_DUTYCYCLE , // Not sent - duty cycle constraints
65+ LORAWAN_SEND_ALREADYRUNNING , // A transmission is already in progress (ERROR)
66+ LORAWAN_SEND_FAILED // Various other failure (ERROR)
6467} itsdk_lorawan_send_t ;
6568
6669
@@ -145,7 +148,10 @@ itsdk_lorawan_send_t itsdk_lorawan_send_sync( // Send a frame in sync mod
145148 uint8_t port ,
146149 uint8_t dataRate ,
147150 itsdk_lorawan_sendconf_t confirm ,
148- uint8_t retry
151+ uint8_t retry ,
152+ uint8_t * rPort , // In case of reception - Port (uint8_t)
153+ uint8_t * rSize , // In case of reception - Size (uint8_t) - init with buffer max size
154+ uint8_t * rData // In case of recpetion - Data (uint8_t[] bcopied)
149155);
150156itsdk_lorawan_send_t itsdk_lorawan_send_async ( // Send a frame in async mode
151157 uint8_t * payload ,
@@ -154,7 +160,7 @@ itsdk_lorawan_send_t itsdk_lorawan_send_async( // Send a frame in async m
154160 uint8_t dataRate ,
155161 itsdk_lorawan_sendconf_t confirm ,
156162 uint8_t retry ,
157- void (* callback_func )(itsdk_lorawan_send_t status )
163+ void (* callback_func )(itsdk_lorawan_send_t status , uint8_t port , uint8_t size , uint8_t * rxData )
158164);
159165itsdk_lorawan_send_t itsdk_lorawan_getSendState (); // Send state for polling
160166
0 commit comments