Description

The device sends this frame in response to a Socket Connect - 0x42 frame. The frame contains a status regarding the initiation of the connect.

Format

The following table provides the contents of the frame. For details on frame structure, see API Frames.

Offset Size Frame Field Description

0

8-bit

Start Delimiter

Indicates the start of an API frame.

1

16-bit

Length

Number of bytes between the length and checksum.

3

8-bit

Frame type

0xC2

4

8-bit

Frame ID

A reference identifier used to match status responses.

5

8-bit

Socket ID

ID of the socket that will be connected.

6

8-bit

Status

status codes:

  • 0x00: Successfully started the connection process

  • 0x01: Invalid parameter on connection request

  • 0x03: Connection already in progress

  • 0x20: Attempted connection on a non-TCP socket

EOF

8-bit

Checksum

0xFF minus the 8-bit sum of bytes from offset 3 to this byte (between length and checksum).