EspMeshMesh
class EspMeshMesh
Functions
| Name | Description |
|---|---|
| broadcastSendData | @brief Send data using broadcast2 protocol with port selector. |
| unicastSendData | @brief Send data using unicast protocol. |
Function Details
broadcastSendData
!!! function "void broadcastSendData(const uint8_t *buff, uint16_t len)"
@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.
unicastSendData
!!! function "void unicastSendData(const uint8_t *buff, uint16_t len, uint32_t addr, uint16_t port = 0)"
@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
:material-location-enter: `port`
: Port to send data to. Data will be received only from callbacks registered with this port.