![]() |
API
2.2
TSmarT Software Library
|
Configuration for XBee wifi. More...
#include <tsmart_xbee_wifi.h>
Data Fields | |
tsmart_xbee_wifi_network_type_t | network_type |
uint8_t | baud_rate |
tsmart_xbee_wifi_flow_control_t | flow_control |
uint8_t | timeout_connection |
tsmart_xbee_wifi_flag_t | dhcp |
uint16_t | local_port |
tsmart_xbee_wifi_ip_t | local_ip |
uint8_t | channel |
tsmart_xbee_wifi_mask_t | mask |
tsmart_xbee_wifi_ip_t | ip_gw |
tsmart_xbee_wifi_ip_t | dest_ip |
uint16_t | dest_port |
tsmart_xbee_wifi_protocol_t | protocol |
uint8_t | power_signal |
uint8_t | speed_channel |
uint8_t | ssid [PR_TSMART_XBEE_WIFI_MAX_SSID_SIZE] |
uint8_t | ssid_size |
encriptation_type_t | encryption_type |
uint8_t | security_key [PR_TSMART_XBEE_WIFI_MAX_KEY_SIZE] |
uint8_t | security_key_size |
tsmart_xbee_wifi_flag_t | api |
Configuration for XBee wifi.
Configures API mode:
The default value for this parameter is: TSMART_XBEE_WIFI_ENABLE.
uint8_t baud_rate |
Baud Rate:
The default value for this parameter is: 3.
uint8_t channel |
Set the channel number when the type of network is configured for Adhoc creator mode. when using Adhoc mode, not all channels are available in all countries. It is the responsibility of the installer to use the appropriate channels. Range: 0x00 - 0x0E.
The default value for this parameter is: 0x02.
tsmart_xbee_wifi_ip_t dest_ip |
Destination IP. The default value for this parameter is 0.0.0.0
uint16_t dest_port |
Destination UDP/TCP service port. The default value for this parameter is: 9750
Configures DCHP mode:
The default value for this parameter is: TSMART_XBEE_WIFI_ENABLE.
encriptation_type_t encryption_type |
Selects encrytation security type:
The default value for this parameter is: TSMART_XBEE_WIFI_NONE.
tsmart_xbee_wifi_flow_control_t flow_control |
Specifies whether the hardware flow control mode is enabled or disabled. This parameter shall be selected amongst the following values:
The default value for this parameter is: TSMART_XBEE_WIFI_FLOW_CONTROL_DISABLE .
tsmart_xbee_wifi_ip_t ip_gw |
IP address for the gateway, only for static IP address configuration. The default value for this parameter is: 0.0.0.0
tsmart_xbee_wifi_ip_t local_ip |
IP network address, only for static IP address configuration. The default value for this parameter is: 0.0.0.0.
uint16_t local_port |
Local service port. The default value for this parameter is: 9750.
IP address mask, only for static IP address configuration. The default value for this parameter is: 0.0.0.0
tsmart_xbee_wifi_network_type_t network_type |
Network Type. Supported modes:
The default value for this parameter is: TSMART_XBEE_WIFI_INFRAESTRUCTURE.
uint8_t power_signal |
The power level at which the RF module transmits conducted power. The default value for this parameter is: 0.
tsmart_xbee_wifi_protocol_t protocol |
Set protocol:
The default value for this parameter is: TSMART_XBEE_WIFI_TCP.
uint8_t security_key[PR_TSMART_XBEE_WIFI_MAX_KEY_SIZE] |
Set the security key used for WEP, WPA and WPA2 security which may be up to 31 ASCII characters. The default value for this parameter is: "0000".
uint8_t security_key_size |
Security key size. The default value for this parameter is: 4.
uint8_t speed_channel |
Bit Rate of IBSS Creator. Data rates MCS0-7 are 802.11n data rates from 6.5 Mbp to 65Mbps. It's supported following values:
The default value for this parameter is: 0.
uint8_t ssid[PR_TSMART_XBEE_WIFI_MAX_SSID_SIZE] |
The SSID of the access point, which may be up to 31 ASCII characters. The default value for this parameter is: "AAA"
uint8_t ssid_size |
Size of the ssid. The default value for this parameter is: 3
uint8_t timeout_connection |
The timeout for connection on TCP socket. If 0, socket closes immediately after data sent. Range: 0x00 - 0xFF.
The default value for this parameter is: 0x0A.