Sens'it SDK  v2.0.0
Functions
Radio APIs

Sigfox APIs implementation for the Sens'it. More...

Functions

error_t RADIO_API_init (void)
 Initialize Sens'it radio & Sigfox library. More...
 
error_t RADIO_API_send_message (rgb_color_e color, u8 *data, u8 size, bool downlink, u8 *response_ptr)
 Send a Sigfox message. More...
 

Detailed Description

Sigfox APIs implementation for the Sens'it.


Function Documentation

◆ RADIO_API_init()

error_t RADIO_API_init ( void  )

Initialize Sens'it radio & Sigfox library.


Return values
RADIO_ERR_NONENo error
RADIO_ERR_CONFIGURE_RADIOFailed to configure Sens'it radio
RADIO_ERR_OPENFailed to open Sigfox library
RADIO_ERR_SET_STD_CONFIGFailed to configure Sigfox library

◆ RADIO_API_send_message()

error_t RADIO_API_send_message ( rgb_color_e  color,
u8 data,
u8  size,
bool  downlink,
u8 response_ptr 
)

Send a Sigfox message.


Parameters
[in]colorColor of led toggle during transmission
[in]dataData to transmit
[in]sizeSize of data to transmit
[in]downlinkTrue to required a downlink
[out]response_ptrPointer to get downlink data (max: 8 bytes)
Return values
RADIO_ERR_NONENo error
RADIO_ERR_SWITCH_ONFailed to switch radio ON
RADIO_ERR_DUTY_CYCLETransmission not allowed, duty cycle limit reach (RC1 only)
RADIO_ERR_NO_CHANNELTransmission not allowed, no available channel (RC2 & RC4 only)
RADIO_ERR_LBTTransmission not allowed, channel occupied (RC3 only)
RADIO_ERR_SENDSIGFOX_API_send_frame internal error
RADIO_ERR_RECEIVENo downlink message received
RADIO_ERR_NVMEMError during NVMEM storage