
API frames
Socket SendTo (Transmit Explicit Data): IPv4 - 0x45
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
282
Socket SendTo (Transmit Explicit Data): IPv4 - 0x45
Description
A Socket SendTo (Transmit Explicit Data) message causes the device to transmit data using an IPv4
address and port. For a non-zero frame ID, this will elicit a
frame.
If this frame is used with a TCP, SSL, or a connected UDP socket, the address and port fields are
ignored.
You must perform a
frame for a UDP connection before you attempt a
SendTo in order to assign a source port.
Format
The following table provides the contents of the frame. For details on frame structure, see
Field name
Field
value
Data type
Description
Frame type
0x45
Byte
Frame ID
Byte
A reference identifier
used to match status
responses. If set to
0
,
the
frame
is disabled.
Socket ID
Byte
ID of the socket to send
on.
Destination address
32-bit big endian
Destination port
16-bit big endian
Transmit options
Byte bit-field
Reserved
Payload
Variable
Data to be transferred
to the destination, up to
1500 bytes.