---
title: "BROADR-REACH-CLICK"
url: "https://maker.wiznet.io/lawrence/resellers/BROADRREACHCLICK/"
markdown_url: "https://maker.wiznet.io/lawrence/resellers/BROADRREACHCLICK/md"
type: "VAR: Value-Added Reseller Products"
author: "lawrence"
author_url: "https://maker.wiznet.io/lawrence/"
original_author: "lawrence"
original_url: "http://wiznetmuseum.com/?post_type=avada_portfolio&p=17352"
published: "2019-07-24"
language: "en"
likes: 0
views: 1181
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# BROADR-REACH-CLICK

> BROADR-REACH-CLICK

Original author: lawrence (source: http://wiznetmuseum.com/?post_type=avada_portfolio&p=17352)

## Article

**Library Description** BroadR-Reach click library contains basic functions for controlling the click board, but also the advanced functions, which abstract basic operations to a simple send or receive functions. **Key functions**: `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.

---

Source: https://maker.wiznet.io/lawrence/resellers/BROADRREACHCLICK/
