Socket Send (Transmit) - 0x44

Description

A Socket Send message causes the device to transmit data using the current connection. For a non-zero frame ID, this will elicit a Transmit (TX) Status - 0x89 frame.

This frame requires a successful Socket Connect - 0x42 frame first. For a socket that is not connected, the device responds with a Transmit (TX) Status - 0x89 frame with an error. To send data from a UDP socket that is not connect, use a Socket SendTo - 0x45 frame.

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

0x44

Byte

 

Frame ID

 

Byte

A reference identifier used to match status responses. If set to 0, the Transmit (TX) Status - 0x89 frame is disabled.

Socket ID

 

Byte

ID of the socket to send on.

Transmit options   Byte bit-field

Reserved

Payload   Variable Data to be transferred to the destination, up to 1500 bytes.