API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
tsmart_xbee_wifi_ipv4_data_to_send_t Struct Reference

IPv4 data frame structure to send. More...

#include <tsmart_xbee_wifi.h>

Data Fields

uint8_t frame_id
 
tsmart_xbee_wifi_ip_t remote_ip
 
uint16_t remote_port
 
uint16_t local_port
 
tsmart_xbee_wifi_flag_t close_socket
 
tsmart_xbee_wifi_report_t protocol
 
uint8_t payload [PR_TSMART_XBEE_WIFI_MAX_API_PAYLOAD]
 
uint32_t payload_size
 

Detailed Description

IPv4 data frame structure to send.

Examples:
wifi_sender.c.

Field Documentation

Close connection option.

  • TSMART_XBEE_WIFI_ENABLE - Terminate socket after tx complete
  • TSMART_XBEE_WIFI_DISABLE - Leave socket open (use TCP timeout) or for UDP packets
Examples:
wifi_sender.c.
uint8_t frame_id

Frame ID of the ipv4 frame

Examples:
wifi_sender.c.
uint16_t local_port

Local port

Examples:
wifi_sender.c.
uint8_t payload[PR_TSMART_XBEE_WIFI_MAX_API_PAYLOAD]

Payload (up to 110 bytes)

Examples:
wifi_sender.c.
uint32_t payload_size

Payload size

Examples:
wifi_sender.c.

Protocol use to transmit data:

  • TSMART_XBEE_WIFI_UDP
  • TSMART_XBEE_WIFI_TCP
Examples:
wifi_sender.c.

Remote IP address

Examples:
wifi_sender.c.
uint16_t remote_port

Remote port

Examples:
wifi_sender.c.