1.3.3.18 SYS_NET_Config Struct
C
typedef struct { // Net Socket Mode to Open - SYS_NET_MODE_CLIENT(0)/ SYS_NET_MODE_SERVER(1) uint8_t mode; // WiFi or Eth Interface to be used for Opening the socket uint8_t intf; // Net Server Port uint16_t port; // Reconnect in case of disconnection happening - 1(Reconnect Enabled)/ 0(Reconnect Disabled) bool enable_reconnect; // Net Socket with 1(TLS Enabled)/ 0(TLS Disabled) bool enable_tls; // Socket IP Protocol - SYS_NET_IP_PROT_UDP(0) or SYS_NET_IP_PROT_TCP(1) uint8_t ip_prot; // Host Name - could have the server name or IP char host_name[SYS_NET_MAX_HOSTNAME_LEN]; } SYS_NET_Config;
Summary
Used for passing on the configuration related to the Net Socket that needs to be opened via the Sys Net Service
Remarks
None.