
API frames
Socket Connect Response - 0xC2
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
278
Socket Connect Response - 0xC2
Description
The device sends this frame in response to a
frame. The frame contains a
status regarding the initiation of the connect.
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
Field name
Field value
Data type
Description
Frame type
0xC2
Byte
Frame ID
Byte
A reference identifier used to match status responses.
Socket ID
Byte
ID of the socket that will be connected.
Status
Byte
Status code. See the table below.
The following table shows the status codes.
Code
Description
0x00
Successfully started the connection process
0x01
Invalid destination address type
0x02
Invalid parameter: address or port
0x03
Connection already in progress
0x04
Already connected
0x05
Socket Connect is not allowed on this socket. The
socket is closed, closing, or in a bound/listening
state.
0x20
Invalid socket ID