Socket Connect - 0X42 - Digi XBee 3 Cellular LTE-M User Manual

Smart modem
Table of Contents

Advertisement

API frames

Socket Connect - 0x42

Description
Use this frame to connect a socket to the given address and port.
For a UDP socket, this filters out any received responses that are not from the specified remote
address and port.
Two frames occur in response:
1.
Socket Connect Response
2.
Socket Status
It is not permitted to proceed transmitting data on this socket until after a Socket Status frame has
been received, indicating success.
Format
The following table provides the contents of the frame. For details on frame structure, see
format.
Field name
Frame type
Frame ID
Socket ID
Destination port
Destination
address type
Destination
address
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
frame: Arrives immediately and confirms the request.
frame: Indicates if the connection was successful.
Field
value
Data type
0x42
Byte
Byte
Byte
16-bit big endian
Byte
Variable
Socket Connect - 0x42
Description
A reference identifier used to match
status responses. If set to 0, the device
does not send a response.
ID of the socket to connect.
0: Indicates the destination address
field is a binary IPv4 address in network
byte order.
1: Indicates the destination address
field is a string containing either a
dotted quad value or a domain name to
be resolved.
API frame
277

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents