BROADR-REACH-CLICK
BROADR-REACH-CLICK
0
Project description
uint8_t broadr_socketOpen(uint8_t socket, uint8_t mode, uint16_t settings)- Opens a socket in the selected mode, enabling its operation
uint8_t broadr_sendData(uint8_t socket, uint8_t * pSendData, uint16_t bytesCount)- Ends data from the selected socket
uint8_t broadr_receiveData(uint8_t socket, uint8_t mode, uint8_t * pReceiveData, uint8_t * headerInformation)- Reads received data from the selected socket
Example Description
The application is composed of three sections :
- System Initialization - Initializes pin, SPI peripheral, and logger functions.
- Application Initialization - Initializes the click driver, sets the required network parameters (Addresses), opens socket 0 in UDP mode, and sets the destination address and port for that socket.
- Application Task - Sends data contained in the sendData array and checks if any data has been received. If so, the received data is printed on UART. Contents of the sendData array are automatically changed in each iteration, so that each sent packet is different from the previous.