Socket Create Response - 0xC0
Description
The device sends this frame in response to a Socket Create (0x40) frame. It contains a socket ID that should be used for future transactions with the socket and a status field.
If the status field is non-zero, which indicates an error, the socket ID will be set to 0xFF and the socket will not be opened.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame format.
Field name | Field value | Data type | Description |
---|---|---|---|
Frame type |
0xC0 |
Byte |
|
Frame ID |
|
Byte |
A reference identifier used to match status responses. |
Socket ID |
|
Byte |
A unique socket ID to address the socket. This field is 0xFF if the value in the status field is non-zero. |
Status | Byte | Status code. See table below. |
The following table shows the status codes.
Code | Description |
---|---|
0x0 |
Successful open |
0x22 |
Not registered to cell network |
0x31 |
Internal error |
0x32 |
Resource error: retry the operation later |
0x7B |
Invalid protocol |
0x7E | A modem update is in process. Try again after its completion. |
0x85 | Unknown error |
0x86 | Invalid TLS configuration |