EspMeshMesh
class EspMeshMesh
Functions
| Name | Description |
|---|---|
| broadcast2SendData | @brief Send data using broadcast2 protocol with port selector. |
| registerBroadcast2Port | @brief Register a callback to receive data from a specific port of broadcast2 protocol. |
| uniCastSendData | @brief Send data using unicast protocol. |
| unicastSendData | @brief Send data using unicast protocol with port selector. |
Function Details
broadcast2SendData
!!! function "void broadcast2SendData(const uint8_t *buff, uint16_t len, bool port)"
@brief Send data using broadcast2 protocol with port selector.
:material-location-enter: `buff`
: Data to send
:material-location-enter: `len`
: Length of data to send
:material-location-enter: `port`
: Port to send data to. Data will be received only from callbacks registered with this port.
registerBroadcast2Port
!!! function "void registerBroadcast2Port(uint16_t port, Broadcast2ReceiveRadioPacketHandler handler)"
@brief Register a callback to receive data from a specific port of broadcast2 protocol.
:material-location-enter: `port`
: Port to register callback for
:material-location-enter: `handler`
: Callback function
:material-location-enter: `arg`
: Argument to pass to callback
uniCastSendData
!!! function "void uniCastSendData(const uint8_t *buff, uint16_t len, uint32_t addr)"
@brief Send data using unicast protocol.
:material-location-enter: `buff`
: Data to send
:material-location-enter: `len`
: Length of data to send
:material-location-enter: `addr`
: Address to send data to
unicastSendData
!!! function "void unicastSendData(const uint8_t *buff, uint16_t len, uint32_t addr, uint16_t port)"
@brief Send data using unicast protocol with port selector.
:material-location-enter: `buff`
: Data to send
:material-location-enter: `len`
: Length of data to send
:material-location-enter: `addr`
: Address to send data to
:material-location-enter: `port`
: Port to send data to. Data will be received only from callbacks registered with this port.