|
Open Model Railroad Network (OpenMRN)
|
Provides the startup and mantainance methods for configuring and using the CC32xx Wi-Fi stack. More...
#include <CC32xxWiFi.hxx>
Classes | |
| struct | FatalErrorEvent |
| CC32xx forward declaration Helper. More... | |
| struct | HttpServerEvent |
| CC32xx forward declaration Helper. More... | |
| struct | HttpServerResponse |
| CC32xx forward declaration Helper. More... | |
| struct | NetAppEvent |
| CC32xx forward declaration Helper. More... | |
| struct | NetAppRequest |
| CC32xx forward declaration Helper. More... | |
| struct | NetAppResponse |
| CC32xx forward declaration Helper. More... | |
| struct | SockEvent |
| CC32xx forward declaration Helper. More... | |
| struct | SockTriggerEvent |
| CC32xx forward declaration Helper. More... | |
| struct | WlanEvent |
| CC32xx forward declaration Helper. More... | |
| struct | WlanNetworkEntry |
| metadata for a WLAN netowrk entry. More... | |
Public Types | |
| enum | WlanConnectionPolicy { WLAN_CONNECTION_NO_CHANGE , WLAN_CONNECTION_SCAN , WLAN_CONNECTION_FAST_RECONNECT , WLAN_CONNECTION_NO_CHANGE , WLAN_CONNECTION_SCAN , WLAN_CONNECTION_FAST_RECONNECT } |
| The Wlan reconnect policy. More... | |
| enum | WlanPowerPolicy { WLAN_NORMAL_POLICY , WLAN_LOW_LATENCY_POLICY , WLAN_LOW_POWER_POLICY , WLAN_ALWAYS_ON_POLICY , WLAN_NO_CHANGE_POLICY , WLAN_NORMAL_POLICY , WLAN_LOW_LATENCY_POLICY , WLAN_LOW_POWER_POLICY , WLAN_ALWAYS_ON_POLICY , WLAN_NO_CHANGE_POLICY } |
| The WLAN power policy. More... | |
| enum | WlanConnectionPolicy { WLAN_CONNECTION_NO_CHANGE , WLAN_CONNECTION_SCAN , WLAN_CONNECTION_FAST_RECONNECT , WLAN_CONNECTION_NO_CHANGE , WLAN_CONNECTION_SCAN , WLAN_CONNECTION_FAST_RECONNECT } |
| The Wlan reconnect policy. More... | |
| enum | WlanPowerPolicy { WLAN_NORMAL_POLICY , WLAN_LOW_LATENCY_POLICY , WLAN_LOW_POWER_POLICY , WLAN_ALWAYS_ON_POLICY , WLAN_NO_CHANGE_POLICY , WLAN_NORMAL_POLICY , WLAN_LOW_LATENCY_POLICY , WLAN_LOW_POWER_POLICY , WLAN_ALWAYS_ON_POLICY , WLAN_NO_CHANGE_POLICY } |
| The WLAN power policy. More... | |
| using | PostFunction = std::function< void(uint16_t handle, uint32_t content_length, const uint8_t *md, size_t md_len, const uint8_t *payload, size_t payload_len, bool has_more)> |
| This function type is used for POST callback operations to the application. | |
| using | PostFunction = std::function< void(uint16_t handle, uint32_t content_length, const uint8_t *md, size_t md_len, const uint8_t *payload, size_t payload_len, bool has_more)> |
| This function type is used for POST callback operations to the application. | |
Public Types inherited from CC32xxWiFiInterface | |
| enum | SecurityType { SEC_OPEN , SEC_WEP , SEC_WPA2 , SEC_OPEN , SEC_WEP , SEC_WPA2 } |
| Security types. More... | |
| enum | SecurityType { SEC_OPEN , SEC_WEP , SEC_WPA2 , SEC_OPEN , SEC_WEP , SEC_WPA2 } |
| Security types. More... | |
Public Member Functions | |
| CC32xxWiFi () | |
| Constructor. | |
| ~CC32xxWiFi () | |
| Destructor. | |
| void | test_mode_start () |
| Startup the Wi-Fi in test mode. | |
| void | start (WlanRole role=WlanRole::STA, WlanPowerPolicy power_policy=WLAN_NO_CHANGE_POLICY, WlanConnectionPolicy connection_policy=WLAN_CONNECTION_NO_CHANGE) |
| Startup the Wi-Fi. | |
| void | stop () |
| Stops the Wi-Fi in preparation for a reboot. | |
| bool | is_started () |
| Get the started state of the network processor. | |
| WlanConnectResult | wlan_connect (const char *ssid, const char *security_key, SecurityType security_type) |
| Connect to access point. | |
| void | wlan_disconnect () |
| Disconnects from the current AP. | |
| void | wlan_wps_pbc_initiate () |
| Initiate a WPS Push Button Control connection. | |
| void | wlan_setup_ap (const char *ssid, const char *security_key, SecurityType security_type) override |
| Setup access point role credentials. | |
| void | wlan_get_ap_config (string *ssid, SecurityType *security_type) |
| Retrieve current AP config. | |
| int | wlan_get_ap_station_count () |
| Retrieves how many stations are connected to the wifi in AP mode. | |
| bool | wlan_ready () |
| WlanRole | wlan_role () |
| Get the current Wi-Fi role. | |
| void | wlan_set_role (WlanRole new_role) |
| Change the default Wlan Role. | |
| WlanState | wlan_startup_state () |
| void | connecting_update_blinker () |
| Updates the blinker based on connection state. | |
| CountryCode | wlan_country_code_get () |
| Get the current country code. | |
| int | wlan_country_code_set (CountryCode cc, bool restart=false) |
| Set the current country code. | |
| void | wlan_set_scan_params (int mask, int min_rssi) |
| Sets the scan parameters. | |
| int | wlan_profile_add (const char *ssid, SecurityType sec_type, const char *key, unsigned priority) |
| Add a saved WLAN profile. | |
| int | wlan_profile_del (const char *ssid) |
| Delete a saved WLAN profile. | |
| int | wlan_profile_del (int index) override |
| Delete a saved WLAN profile. | |
| int | wlan_profile_get (int index, char ssid[], SecurityType *sec_type, uint32_t *priority) |
| Get a saved WLAN profile by index. | |
| bool | wlan_profile_test_none () |
| Test if there are any saved profiles. | |
| int | wlan_power_policy_set (WlanPowerPolicy wpp) |
| Set the power policy. | |
| int | wlan_power_policy_get (WlanPowerPolicy *wpp) |
| Get the power policy. | |
| void | wlan_connection_policy_set (WlanConnectionPolicy policy) |
| Sets connection policy to auto connect. | |
| int | wlan_network_list_get (WlanNetworkEntry *entries, size_t count) |
| Get a list of available networks. | |
| void | wlan_rescan () |
| Initiate rescanning available networks. | |
| void | wlan_mac (uint8_t mac[6]) |
| Get the device MAC address. | |
| void | wlan_set_mac (uint8_t mac[6]) |
| Sets the device MAC address. | |
| uint32_t | wlan_ip () |
| Get the assigned IP address. | |
| const char * | wlan_ssid () |
| Get the SSID of the access point we are connected to. | |
| int | wlan_rssi () |
| Get the receive signal strength indicator. | |
| void | set_ip_acquired_callback (std::function< void(bool)> callback) |
| void | run_on_network_thread (std::function< void()> callback) |
| Executes the given function on the network thread. | |
| void | add_http_get_token_callback (const char *token_name, std::function< std::string()> callback) |
| Add an HTTP get token callback. | |
| void | add_http_post_callback (const char *uri, PostFunction callback) |
| Registers a handler for an HTTP POST operation. | |
| bool | get_post_data (uint16_t handle, void *buf, size_t *len) |
| Retrieves additional payload for http POST operations. | |
| void | send_post_respose (uint16_t handle, uint16_t http_status=204, const string &redirect="") |
| Sends a POST response. | |
| void | wlan_event_handler (WlanEvent *event) |
| This function handles WLAN events. | |
| void | net_app_event_handler (NetAppEvent *event) |
| This function handles network events such as IP acquisition, IP leased, IP released etc. | |
| void | sock_event_handler (SockEvent *event) |
| This function handles socket events indication. | |
| void | trigger_event_handler (SockTriggerEvent *event) |
| Notifies the service about a wifi asynchronous socket event callback. | |
| void | http_server_callback (HttpServerEvent *event, HttpServerResponse *response) |
| This function handles http server callback indication. | |
| void | netapp_request_callback (NetAppRequest *request, NetAppResponse *response) |
| This function handles netapp request callbacks. | |
| void | fatal_error_callback (FatalErrorEvent *event) |
| This Function Handles the Fatal errors. | |
| CC32xxWiFi () | |
| Constructor. | |
| ~CC32xxWiFi () | |
| Destructor. | |
| void | test_mode_start () |
| Startup the Wi-Fi in test mode. | |
| void | start (WlanRole role=WlanRole::STA, WlanPowerPolicy power_policy=WLAN_NO_CHANGE_POLICY, WlanConnectionPolicy connection_policy=WLAN_CONNECTION_NO_CHANGE) |
| Startup the Wi-Fi. | |
| void | stop () |
| Stops the Wi-Fi in preparation for a reboot. | |
| bool | is_started () |
| Get the started state of the network processor. | |
| WlanConnectResult | wlan_connect (const char *ssid, const char *security_key, SecurityType security_type) |
| Connect to access point. | |
| void | wlan_disconnect () |
| Disconnects from the current AP. | |
| void | wlan_wps_pbc_initiate () |
| Initiate a WPS Push Button Control connection. | |
| void | wlan_setup_ap (const char *ssid, const char *security_key, SecurityType security_type) override |
| Setup access point role credentials. | |
| void | wlan_get_ap_config (string *ssid, SecurityType *security_type) |
| Retrieve current AP config. | |
| int | wlan_get_ap_station_count () |
| Retrieves how many stations are connected to the wifi in AP mode. | |
| bool | wlan_ready () |
| WlanRole | wlan_role () |
| Get the current Wi-Fi role. | |
| void | wlan_set_role (WlanRole new_role) |
| Change the default Wlan Role. | |
| WlanState | wlan_startup_state () |
| void | connecting_update_blinker () |
| Updates the blinker based on connection state. | |
| CountryCode | wlan_country_code_get () |
| Get the current country code. | |
| int | wlan_country_code_set (CountryCode cc, bool restart=false) |
| Set the current country code. | |
| void | wlan_set_scan_params (int mask, int min_rssi) |
| Sets the scan parameters. | |
| int | wlan_profile_add (const char *ssid, SecurityType sec_type, const char *key, unsigned priority) |
| Add a saved WLAN profile. | |
| int | wlan_profile_del (const char *ssid) |
| Delete a saved WLAN profile. | |
| int | wlan_profile_del (int index) override |
| Delete a saved WLAN profile. | |
| int | wlan_profile_get (int index, char ssid[], SecurityType *sec_type, uint32_t *priority) |
| Get a saved WLAN profile by index. | |
| bool | wlan_profile_test_none () |
| Test if there are any saved profiles. | |
| int | wlan_power_policy_set (WlanPowerPolicy wpp) |
| Set the power policy. | |
| int | wlan_power_policy_get (WlanPowerPolicy *wpp) |
| Get the power policy. | |
| void | wlan_connection_policy_set (WlanConnectionPolicy policy) |
| Sets connection policy to auto connect. | |
| int | wlan_network_list_get (WlanNetworkEntry *entries, size_t count) |
| Get a list of available networks. | |
| void | wlan_rescan () |
| Initiate rescanning available networks. | |
| void | wlan_mac (uint8_t mac[6]) |
| Get the device MAC address. | |
| void | wlan_set_mac (uint8_t mac[6]) |
| Sets the device MAC address. | |
| uint32_t | wlan_ip () |
| Get the assigned IP address. | |
| const char * | wlan_ssid () |
| Get the SSID of the access point we are connected to. | |
| int | wlan_rssi () |
| Get the receive signal strength indicator. | |
| void | set_ip_acquired_callback (std::function< void(bool)> callback) |
| void | run_on_network_thread (std::function< void()> callback) |
| Executes the given function on the network thread. | |
| void | add_http_get_token_callback (const char *token_name, std::function< std::string()> callback) |
| Add an HTTP get token callback. | |
| void | add_http_post_callback (const char *uri, PostFunction callback) |
| Registers a handler for an HTTP POST operation. | |
| bool | get_post_data (uint16_t handle, void *buf, size_t *len) |
| Retrieves additional payload for http POST operations. | |
| void | send_post_respose (uint16_t handle, uint16_t http_status=204, const string &redirect="") |
| Sends a POST response. | |
| void | wlan_event_handler (WlanEvent *event) |
| This function handles WLAN events. | |
| void | net_app_event_handler (NetAppEvent *event) |
| This function handles network events such as IP acquisition, IP leased, IP released etc. | |
| void | sock_event_handler (SockEvent *event) |
| This function handles socket events indication. | |
| void | trigger_event_handler (SockTriggerEvent *event) |
| Notifies the service about a wifi asynchronous socket event callback. | |
| void | http_server_callback (HttpServerEvent *event, HttpServerResponse *response) |
| This function handles http server callback indication. | |
| void | netapp_request_callback (NetAppRequest *request, NetAppResponse *response) |
| This function handles netapp request callbacks. | |
| void | fatal_error_callback (FatalErrorEvent *event) |
| This Function Handles the Fatal errors. | |
Static Public Member Functions | |
| static std::string | get_version () |
| Returns a string contianing the version numbers of the network interface. | |
| static std::string | get_version () |
| Returns a string contianing the version numbers of the network interface. | |
Static Public Member Functions inherited from Singleton< CC32xxWiFi > | |
| static CC32xxWiFi * | instance () |
| static bool | exists () |
Static Public Attributes | |
| static constexpr int | PROFILE_DELETE_ALL = 0xFF |
| the value passed to wlan_profile_del() to remove all profiles | |
| static constexpr int | NUM_PROFILES = 7 |
| What is the maximum number of profiles in the CC32xx. | |
| static constexpr unsigned | IPPROTO_TCP_TLS = 254 |
| Pass this option as protocol to socket to create a secure socket. | |
| static constexpr unsigned | SO_SIMPLELINK_SD = 65537 |
| Retrieves the socket descriptor for setting TLS parameters. | |
Private Member Functions | |
| void | set_default_state () |
| Set the CC32xx to its default state, including station mode. | |
| void | wlan_task () |
| Thread that will manage the WLAN connection inside object context. | |
| void | select_wakeup () |
| Asynchronously wakeup the select call. | |
| void | fd_remove (int16_t sd) |
| Remove a socket from the known sockets that might be part of the sl_Select fdset. | |
| void | fd_set_read (int16_t sd) |
| Add socket to the read fd set. | |
| void | fd_set_write (int16_t sd) |
| Add socket to the write fd set. | |
| string | http_get_ip_address () |
| Get the IP address for a http request. | |
| DISALLOW_COPY_AND_ASSIGN (CC32xxWiFi) | |
| void | set_default_state () |
| Set the CC32xx to its default state, including station mode. | |
| void | wlan_task () |
| Thread that will manage the WLAN connection inside object context. | |
| void | select_wakeup () |
| Asynchronously wakeup the select call. | |
| void | fd_remove (int16_t sd) |
| Remove a socket from the known sockets that might be part of the sl_Select fdset. | |
| void | fd_set_read (int16_t sd) |
| Add socket to the read fd set. | |
| void | fd_set_write (int16_t sd) |
| Add socket to the write fd set. | |
| string | http_get_ip_address () |
| Get the IP address for a http request. | |
| DISALLOW_COPY_AND_ASSIGN (CC32xxWiFi) | |
Static Private Member Functions | |
| static uint8_t | security_type_to_simplelink (SecurityType sec_type) |
| Translates the SecurityType enum to the internal SimpleLink code. | |
| static SecurityType | security_type_from_simplelink (uint8_t sec_type) |
| Translates the SimpleLink code to SecurityType enum. | |
| static SecurityType | security_type_from_scan (unsigned sec_type) |
| Translates the SimpleLink code from the network scan to SecurityType enum. | |
| static void * | wlan_task_entry (void *context) |
| Thread that will manage the WLAN connection. | |
| static uint8_t | security_type_to_simplelink (SecurityType sec_type) |
| Translates the SecurityType enum to the internal SimpleLink code. | |
| static SecurityType | security_type_from_simplelink (uint8_t sec_type) |
| Translates the SimpleLink code to SecurityType enum. | |
| static SecurityType | security_type_from_scan (unsigned sec_type) |
| Translates the SimpleLink code from the network scan to SecurityType enum. | |
| static void * | wlan_task_entry (void *context) |
| Thread that will manage the WLAN connection. | |
Private Attributes | |
| uint32_t | ipAddress |
| assigned IP adress | |
| char | ssid [33] |
| SSID of AP, or AP we are connected to. | |
| std::function< void(bool)> | ipAcquiredCallback_ |
| Callback for when IP is acquired. | |
| std::vector< std::function< void()> > | callbacks_ |
| List of callbacks to execute on the network thread. | |
| std::vector< std::pair< const char *, std::function< std::string()> > > | httpGetTokenCallbacks_ |
| List of callbacks for http get tokens. | |
| std::vector< std::pair< const char *, PostFunction > > | httpPostCallbacks_ |
| List of callbacks for http post handlers. | |
| OSMutex | lock_ |
| Protects callbacks_ vector. | |
| int | wakeup |
| loopback socket to wakeup select() | |
| int16_t | rssi |
| receive signal strength indicator | |
| WlanRole | wlanRole |
| the Wi-Fi role we are in | |
| WlanPowerPolicy | wlanPowerPolicy |
| the desired power policy | |
| WlanConnectionPolicy | connectionPolicy |
| scan or reconnect to last AP | |
| unsigned | started: 1 |
| network processor started | |
| unsigned | connected: 1 |
| AP connected state. | |
| unsigned | connectionFailed: 1 |
| Connection attempt failed status. | |
| unsigned | ipAcquired: 1 |
| IP address aquired state. | |
| unsigned | ipLeased: 1 |
| IP address leased to a client(AP mode) | |
| unsigned | smartConfigStart: 1 |
| Smart config in progress. | |
| unsigned | securityFailure: 1 |
| Disconnected due to wrong password. | |
Friends | |
| class | ::NetworkSpace |
| class | CC32xxSocket |
| allow access to private members from CC32xxSocket | |
Additional Inherited Members | |
Protected Member Functions inherited from CC32xxWiFiInterface | |
| virtual | ~CC32xxWiFiInterface () |
| Destructor. | |
| virtual | ~CC32xxWiFiInterface () |
| Destructor. | |
Provides the startup and mantainance methods for configuring and using the CC32xx Wi-Fi stack.
This is designed to be a singleton. It should only be instantiated once.
Definition at line 91 of file net_cc3220/CC32xxWiFi.hxx.
| using CC32xxWiFi::PostFunction = std::function<void(uint16_t handle, uint32_t content_length, const uint8_t *md, size_t md_len, const uint8_t *payload, size_t payload_len, bool has_more)> |
This function type is used for POST callback operations to the application.
| handle | the operation handle, needs to be provided to the future operations to fetch followup data and send response. |
| content_length | value of the Content-Length header, or -1 if such a header is not found. |
| md | encoded metadata. See the CC32xx documentation on how metadata is encoded. The lifetime is restricted to this call inline. |
| md_len | number of bytes in the metadata array |
| payload | the content (or beginning of the content). The lifetime is restricted to this call inline. |
| payload_len | how many bytes are in this chunk of the content |
| has_more | true if there is a continuation of the payload, which needs to be fetched with get_post_data. |
Definition at line 179 of file net_cc3220/CC32xxWiFi.hxx.
| using CC32xxWiFi::PostFunction = std::function<void(uint16_t handle, uint32_t content_length, const uint8_t *md, size_t md_len, const uint8_t *payload, size_t payload_len, bool has_more)> |
This function type is used for POST callback operations to the application.
| handle | the operation handle, needs to be provided to the future operations to fetch followup data and send response. |
| content_length | value of the Content-Length header, or -1 if such a header is not found. |
| md | encoded metadata. See the CC32xx documentation on how metadata is encoded. The lifetime is restricted to this call inline. |
| md_len | number of bytes in the metadata array |
| payload | the content (or beginning of the content). The lifetime is restricted to this call inline. |
| payload_len | how many bytes are in this chunk of the content |
| has_more | true if there is a continuation of the payload, which needs to be fetched with get_post_data. |
Definition at line 179 of file net_cc32xx/CC32xxWiFi.hxx.
The Wlan reconnect policy.
Definition at line 136 of file net_cc3220/CC32xxWiFi.hxx.
The Wlan reconnect policy.
Definition at line 136 of file net_cc32xx/CC32xxWiFi.hxx.
The WLAN power policy.
Definition at line 147 of file net_cc3220/CC32xxWiFi.hxx.
The WLAN power policy.
Definition at line 147 of file net_cc32xx/CC32xxWiFi.hxx.
| CC32xxWiFi::CC32xxWiFi | ( | ) |
Constructor.
Definition at line 181 of file net_cc3220/CC32xxWiFi.cxx.
|
inline |
Destructor.
Definition at line 189 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Destructor.
Definition at line 189 of file net_cc32xx/CC32xxWiFi.hxx.
|
inline |
Add an HTTP get token callback.
A get token is a simple macro substitution that is applied to all files (e.g. HTML, JS) served by the builtin webserver of the CC32xx. The token has a fixed form "__SL_G_*". The form "__SL_G_U*" is the form that is reserved for user defined tokens. The * can be any two characters that uniquely identify the token. When the token is found in an HTML file, the network processor will call the supplied callback in order for the user to return the substitution string. The result returned will be clipped at (MAX_TOKEN_VALUE_LEN - 1), which is (64 - 1) bytes. All tokens must be an exact match.
Use Case Example:
In the example above, the string "__SL_G_U.A" when used in an HTML file will be recognized by the HTTP server replaced with result of the server calling SomeClass::http_get().
Additional documentation on the CC32xx HTTP Web Server can be found in the CC3100/CC3200 SimpleLink Wi-Fi Internet-on-a-Chip User's Guide
| token_name | The token name to match. Must live for the entire lifetime of the binary. Must be of the form __SL_G_U?? |
| callback | the function to execute to give the replacement. |
Definition at line 505 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Add an HTTP get token callback.
A get token is a simple macro substitution that is applied to all files (e.g. HTML, JS) served by the builtin webserver of the CC32xx. The token has a fixed form "__SL_G_*". The form "__SL_G_U*" is the form that is reserved for user defined tokens. The * can be any two characters that uniquely identify the token. When the token is found in an HTML file, the network processor will call the supplied callback in order for the user to return the substitution string. The result returned will be clipped at (MAX_TOKEN_VALUE_LEN - 1), which is (64 - 1) bytes. All tokens must be an exact match.
Use Case Example:
In the example above, the string "__SL_G_U.A" when used in an HTML file will be recognized by the HTTP server replaced with result of the server calling SomeClass::http_get().
Additional documentation on the CC32xx HTTP Web Server can be found in the CC3100/CC3200 SimpleLink Wi-Fi Internet-on-a-Chip User's Guide
| token_name | The token name to match. Must live for the entire lifetime of the binary. Must be of the form __SL_G_U?? |
| callback | the function to execute to give the replacement. |
Definition at line 505 of file net_cc32xx/CC32xxWiFi.hxx.
|
inline |
Registers a handler for an HTTP POST operation.
| uri | the target of the form submit, of the format "/foo/bar" |
| callback | this function will be called from the network processor context when a POST happens to the given URI. |
Definition at line 517 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Registers a handler for an HTTP POST operation.
| uri | the target of the form submit, of the format "/foo/bar" |
| callback | this function will be called from the network processor context when a POST happens to the given URI. |
Definition at line 517 of file net_cc32xx/CC32xxWiFi.hxx.
| void CC32xxWiFi::connecting_update_blinker | ( | ) |
Updates the blinker based on connection state.
Noop if wlan_ready() returns true.
Definition at line 876 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::connecting_update_blinker | ( | ) |
Updates the blinker based on connection state.
Noop if wlan_ready() returns true.
| void CC32xxWiFi::fatal_error_callback | ( | CC32xxWiFi::FatalErrorEvent * | event | ) |
This Function Handles the Fatal errors.
| event | - Contains the fatal error data |
Definition at line 1583 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::fatal_error_callback | ( | FatalErrorEvent * | event | ) |
This Function Handles the Fatal errors.
| event | - Contains the fatal error data |
|
private |
Remove a socket from the known sockets that might be part of the sl_Select fdset.
| sd | socket descriptor to remove |
Definition at line 1127 of file net_cc3220/CC32xxWiFi.cxx.
|
private |
Remove a socket from the known sockets that might be part of the sl_Select fdset.
| sd | socket descriptor to remove |
|
private |
Add socket to the read fd set.
| sd | socket descriptor to add |
Definition at line 1140 of file net_cc3220/CC32xxWiFi.cxx.
|
private |
Add socket to the read fd set.
| sd | socket descriptor to add |
|
private |
Add socket to the write fd set.
| sd | socket descriptor to add |
Definition at line 1158 of file net_cc3220/CC32xxWiFi.cxx.
|
private |
Add socket to the write fd set.
| sd | socket descriptor to add |
| bool CC32xxWiFi::get_post_data | ( | uint16_t | handle, |
| void * | buf, | ||
| size_t * | len | ||
| ) |
Retrieves additional payload for http POST operations.
This function blocks the calling thread. After the lat chunk is retrieved, the caller must invoke the post response function.
| handle | the POST operation handle, given by the POST callback. |
| buf | where to deposit additional data. |
| len | at input, set to the max number of bytes to store. Will be overwritten by the number of actual bytes that arrived. |
Definition at line 1533 of file net_cc3220/CC32xxWiFi.cxx.
| bool CC32xxWiFi::get_post_data | ( | uint16_t | handle, |
| void * | buf, | ||
| size_t * | len | ||
| ) |
Retrieves additional payload for http POST operations.
This function blocks the calling thread. After the lat chunk is retrieved, the caller must invoke the post response function.
| handle | the POST operation handle, given by the POST callback. |
| buf | where to deposit additional data. |
| len | at input, set to the max number of bytes to store. Will be overwritten by the number of actual bytes that arrived. |
|
static |
Returns a string contianing the version numbers of the network interface.
Definition at line 1604 of file net_cc3220/CC32xxWiFi.cxx.
|
inlineprivate |
Get the IP address for a http request.
Definition at line 656 of file net_cc3220/CC32xxWiFi.hxx.
|
inlineprivate |
Get the IP address for a http request.
Definition at line 656 of file net_cc32xx/CC32xxWiFi.hxx.
| void CC32xxWiFi::http_server_callback | ( | HttpServerEvent * | event, |
| HttpServerResponse * | response | ||
| ) |
This function handles http server callback indication.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| event | pointer to HTTP Server Event info |
| response | pointer to HTTP Server Response info |
Definition at line 1403 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::http_server_callback | ( | HttpServerEvent * | event, |
| HttpServerResponse * | response | ||
| ) |
This function handles http server callback indication.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| event | pointer to HTTP Server Event info |
| response | pointer to HTTP Server Response info |
|
inline |
Get the started state of the network processor.
Definition at line 215 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Get the started state of the network processor.
Definition at line 215 of file net_cc32xx/CC32xxWiFi.hxx.
| void CC32xxWiFi::net_app_event_handler | ( | NetAppEvent * | event | ) |
This function handles network events such as IP acquisition, IP leased, IP released etc.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| event | Pointer indicating device acquired IP |
Definition at line 1255 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::net_app_event_handler | ( | NetAppEvent * | event | ) |
This function handles network events such as IP acquisition, IP leased, IP released etc.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| event | Pointer indicating device acquired IP |
| void CC32xxWiFi::netapp_request_callback | ( | NetAppRequest * | request, |
| NetAppResponse * | response | ||
| ) |
This function handles netapp request callbacks.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| request | pointer to NetApp Request info |
| response | pointer to NetApp Response info |
Definition at line 1461 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::netapp_request_callback | ( | NetAppRequest * | request, |
| NetAppResponse * | response | ||
| ) |
This function handles netapp request callbacks.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| request | pointer to NetApp Request info |
| response | pointer to NetApp Response info |
| void CC32xxWiFi::run_on_network_thread | ( | std::function< void()> | callback | ) |
Executes the given function on the network thread.
| callback | isthe function to execute. |
Definition at line 1115 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::run_on_network_thread | ( | std::function< void()> | callback | ) |
Executes the given function on the network thread.
| callback | isthe function to execute. |
|
staticprivate |
Translates the SimpleLink code from the network scan to SecurityType enum.
| sec_type | simplelink network scan security result |
Definition at line 222 of file net_cc3220/CC32xxWiFi.cxx.
|
staticprivate |
Translates the SimpleLink code from the network scan to SecurityType enum.
| sec_type | simplelink network scan security result |
|
staticprivate |
Translates the SimpleLink code to SecurityType enum.
| sec_type | simplelink security type |
Definition at line 241 of file net_cc3220/CC32xxWiFi.cxx.
|
staticprivate |
Translates the SimpleLink code to SecurityType enum.
| sec_type | simplelink security type |
|
staticprivate |
Translates the SecurityType enum to the internal SimpleLink code.
| sec_type | security type |
Definition at line 208 of file net_cc3220/CC32xxWiFi.cxx.
|
staticprivate |
Translates the SecurityType enum to the internal SimpleLink code.
| sec_type | security type |
|
private |
Asynchronously wakeup the select call.
Definition at line 1087 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::send_post_respose | ( | uint16_t | handle, |
| uint16_t | http_status = 204, |
||
| const string & | redirect = "" |
||
| ) |
Sends a POST response.
| handle | the POST operation handle, given by the POST callback. |
| code | HTTP error code (e.g. 204 for success). |
| redirect | optional, if present, will send back a 302 redirect status with this URL (http_status will be ignored). |
Definition at line 1550 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::send_post_respose | ( | uint16_t | handle, |
| uint16_t | http_status = 204, |
||
| const string & | redirect = "" |
||
| ) |
Sends a POST response.
| handle | the POST operation handle, given by the POST callback. |
| code | HTTP error code (e.g. 204 for success). |
| redirect | optional, if present, will send back a 302 redirect status with this URL (http_status will be ignored). |
|
private |
Set the CC32xx to its default state, including station mode.
Definition at line 891 of file net_cc3220/CC32xxWiFi.cxx.
|
inline |
Definition at line 455 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Definition at line 455 of file net_cc32xx/CC32xxWiFi.hxx.
| void CC32xxWiFi::sock_event_handler | ( | SockEvent * | event | ) |
This function handles socket events indication.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| event | pointer to Socket Event Info |
Definition at line 1344 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::sock_event_handler | ( | SockEvent * | event | ) |
This function handles socket events indication.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| event | pointer to Socket Event Info |
| void CC32xxWiFi::start | ( | WlanRole | role = WlanRole::STA, |
| WlanPowerPolicy | power_policy = WLAN_NO_CHANGE_POLICY, |
||
| WlanConnectionPolicy | connection_policy = WLAN_CONNECTION_NO_CHANGE |
||
| ) |
Startup the Wi-Fi.
| device | role |
| power_policy | desired power policy |
Definition at line 699 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::start | ( | WlanRole | role = WlanRole::STA, |
| WlanPowerPolicy | power_policy = WLAN_NO_CHANGE_POLICY, |
||
| WlanConnectionPolicy | connection_policy = WLAN_CONNECTION_NO_CHANGE |
||
| ) |
Startup the Wi-Fi.
| device | role |
| power_policy | desired power policy |
| void CC32xxWiFi::stop | ( | ) |
Stops the Wi-Fi in preparation for a reboot.
TODO: does this need to be called from a critical section?
Definition at line 720 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::stop | ( | ) |
Stops the Wi-Fi in preparation for a reboot.
TODO: does this need to be called from a critical section?
| void CC32xxWiFi::test_mode_start | ( | ) |
Startup the Wi-Fi in test mode.
This mode of operation does not support connection to an AP. This mode is only for RF testing. Test mode can be exited by stop().
Definition at line 620 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::test_mode_start | ( | ) |
Startup the Wi-Fi in test mode.
This mode of operation does not support connection to an AP. This mode is only for RF testing. Test mode can be exited by stop().
| void CC32xxWiFi::trigger_event_handler | ( | SockTriggerEvent * | event | ) |
Notifies the service about a wifi asynchronous socket event callback.
This means that sl_Select needs to be re-run and certain sockets might need wakeup. DO NOT use directly.
| event | parameters from the socket. |
Definition at line 1389 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::trigger_event_handler | ( | SockTriggerEvent * | event | ) |
Notifies the service about a wifi asynchronous socket event callback.
This means that sl_Select needs to be re-run and certain sockets might need wakeup. DO NOT use directly.
| event | parameters from the socket. |
| WlanConnectResult CC32xxWiFi::wlan_connect | ( | const char * | ssid, |
| const char * | security_key, | ||
| SecurityType | security_type | ||
| ) |
Connect to access point.
| ssid | access point ssid |
| security_key | access point security key |
| security_type | specifies security type |
Definition at line 731 of file net_cc3220/CC32xxWiFi.cxx.
| WlanConnectResult CC32xxWiFi::wlan_connect | ( | const char * | ssid, |
| const char * | security_key, | ||
| SecurityType | security_type | ||
| ) |
Connect to access point.
| ssid | access point ssid |
| security_key | access point security key |
| security_type | specifies security type |
| void CC32xxWiFi::wlan_connection_policy_set | ( | WlanConnectionPolicy | policy | ) |
Sets connection policy to auto connect.
Updates the Wifi fast-reconnect policy if desired.
| policy | the desired policy |
Definition at line 533 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::wlan_connection_policy_set | ( | WlanConnectionPolicy | policy | ) |
Sets connection policy to auto connect.
Updates the Wifi fast-reconnect policy if desired.
| policy | the desired policy |
| CountryCode CC32xxWiFi::wlan_country_code_get | ( | ) |
Get the current country code.
Definition at line 261 of file net_cc3220/CC32xxWiFi.cxx.
| CountryCode CC32xxWiFi::wlan_country_code_get | ( | ) |
Get the current country code.
| int CC32xxWiFi::wlan_country_code_set | ( | CountryCode | cc, |
| bool | restart = false |
||
| ) |
Set the current country code.
| cc | country code to set |
| restart | true to restart NWP, else false, use extreme caution when restart = true; |
Definition at line 291 of file net_cc3220/CC32xxWiFi.cxx.
| int CC32xxWiFi::wlan_country_code_set | ( | CountryCode | cc, |
| bool | restart = false |
||
| ) |
Set the current country code.
| cc | country code to set |
| restart | true to restart NWP, else false, use extreme caution when restart = true; |
| void CC32xxWiFi::wlan_disconnect | ( | ) |
Disconnects from the current AP.
Definition at line 765 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::wlan_event_handler | ( | WlanEvent * | event | ) |
This function handles WLAN events.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| event | pointer to WLAN Event Info |
Definition at line 1176 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::wlan_event_handler | ( | WlanEvent * | event | ) |
This function handles WLAN events.
This is public only so that an extern "C" method can call it. DO NOT use directly.
| event | pointer to WLAN Event Info |
| void CC32xxWiFi::wlan_get_ap_config | ( | string * | ssid, |
| SecurityType * | security_type | ||
| ) |
Retrieve current AP config.
| ssid | will be filled with the SSID of the AP |
| security_type | will be filled with the security type |
Definition at line 837 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::wlan_get_ap_config | ( | string * | ssid, |
| SecurityType * | security_type | ||
| ) |
Retrieve current AP config.
| ssid | will be filled with the SSID of the AP |
| security_type | will be filled with the security type |
| int CC32xxWiFi::wlan_get_ap_station_count | ( | ) |
Retrieves how many stations are connected to the wifi in AP mode.
Definition at line 859 of file net_cc3220/CC32xxWiFi.cxx.
| int CC32xxWiFi::wlan_get_ap_station_count | ( | ) |
Retrieves how many stations are connected to the wifi in AP mode.
|
inline |
Get the assigned IP address.
Definition at line 430 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Get the assigned IP address.
Definition at line 430 of file net_cc32xx/CC32xxWiFi.hxx.
| void CC32xxWiFi::wlan_mac | ( | uint8_t | mac[6] | ) |
Get the device MAC address.
| mac | 6 byte array which will hold the resulting MAC address. |
Definition at line 602 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::wlan_mac | ( | uint8_t | mac[6] | ) |
Get the device MAC address.
| mac | 6 byte array which will hold the resulting MAC address. |
| int CC32xxWiFi::wlan_network_list_get | ( | WlanNetworkEntry * | entries, |
| size_t | count | ||
| ) |
Get a list of available networks.
| entries | returns a list of available network entries |
| count | size of entry list in number of elements, max 20 |
Definition at line 582 of file net_cc3220/CC32xxWiFi.cxx.
| int CC32xxWiFi::wlan_network_list_get | ( | WlanNetworkEntry * | entries, |
| size_t | count | ||
| ) |
Get a list of available networks.
| entries | returns a list of available network entries |
| count | size of entry list in number of elements, max 20 |
| int CC32xxWiFi::wlan_power_policy_get | ( | WlanPowerPolicy * | wpp | ) |
Get the power policy.
| wpp | power policy to returned |
Definition at line 459 of file net_cc3220/CC32xxWiFi.cxx.
| int CC32xxWiFi::wlan_power_policy_get | ( | WlanPowerPolicy * | wpp | ) |
Get the power policy.
| wpp | power policy to returned |
| int CC32xxWiFi::wlan_power_policy_set | ( | WlanPowerPolicy | wpp | ) |
Set the power policy.
| wpp | power policy to set |
Definition at line 497 of file net_cc3220/CC32xxWiFi.cxx.
| int CC32xxWiFi::wlan_power_policy_set | ( | WlanPowerPolicy | wpp | ) |
Set the power policy.
| wpp | power policy to set |
| int CC32xxWiFi::wlan_profile_add | ( | const char * | ssid, |
| SecurityType | sec_type, | ||
| const char * | key, | ||
| unsigned | priority | ||
| ) |
Add a saved WLAN profile.
| ssid | WLAN SSID of the profile to save |
| sec_type | SecurityType of the profile to be saved |
| key | password of the SSID, nullptr allowed if sec_type is SEC_OPEN |
| priority | connection priority when more than one of the saved networks is available, 0 == lowest priority |
Definition at line 364 of file net_cc3220/CC32xxWiFi.cxx.
| int CC32xxWiFi::wlan_profile_add | ( | const char * | ssid, |
| SecurityType | sec_type, | ||
| const char * | key, | ||
| unsigned | priority | ||
| ) |
Add a saved WLAN profile.
| ssid | WLAN SSID of the profile to save |
| sec_type | SecurityType of the profile to be saved |
| key | password of the SSID, nullptr allowed if sec_type is SEC_OPEN |
| priority | connection priority when more than one of the saved networks is available, 0 == lowest priority |
| int CC32xxWiFi::wlan_profile_del | ( | const char * | ssid | ) |
Delete a saved WLAN profile.
| ssid | WLAN SSID of the profile to delete |
Definition at line 390 of file net_cc3220/CC32xxWiFi.cxx.
| int CC32xxWiFi::wlan_profile_del | ( | const char * | ssid | ) |
Delete a saved WLAN profile.
| ssid | WLAN SSID of the profile to delete |
|
overridevirtual |
Delete a saved WLAN profile.
| index | index within saved profile list to remove, 0xFF removes all |
Implements CC32xxWiFiInterface.
Definition at line 382 of file net_cc3220/CC32xxWiFi.cxx.
|
overridevirtual |
Delete a saved WLAN profile.
| index | index within saved profile list to remove, 0xFF removes all |
Implements CC32xxWiFiInterface.
| int CC32xxWiFi::wlan_profile_get | ( | int | index, |
| char | ssid[], | ||
| SecurityType * | sec_type, | ||
| uint32_t * | priority | ||
| ) |
Get a saved WLAN profile by index.
| index | index within saved profile list to get |
| ssid | 33 byte array that will return the ssid of the index |
| sec_type | will return the security type of the index |
| priority | will return the priority of the index |
Definition at line 415 of file net_cc3220/CC32xxWiFi.cxx.
| int CC32xxWiFi::wlan_profile_get | ( | int | index, |
| char | ssid[], | ||
| SecurityType * | sec_type, | ||
| uint32_t * | priority | ||
| ) |
Get a saved WLAN profile by index.
| index | index within saved profile list to get |
| ssid | 33 byte array that will return the ssid of the index |
| sec_type | will return the security type of the index |
| priority | will return the priority of the index |
| bool CC32xxWiFi::wlan_profile_test_none | ( | ) |
Test if there are any saved profiles.
Definition at line 442 of file net_cc3220/CC32xxWiFi.cxx.
| bool CC32xxWiFi::wlan_profile_test_none | ( | ) |
Test if there are any saved profiles.
|
inline |
Definition at line 258 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Definition at line 258 of file net_cc32xx/CC32xxWiFi.hxx.
| void CC32xxWiFi::wlan_rescan | ( | ) |
Initiate rescanning available networks.
Definition at line 570 of file net_cc3220/CC32xxWiFi.cxx.
|
inline |
Get the current Wi-Fi role.
Definition at line 266 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Get the current Wi-Fi role.
Definition at line 266 of file net_cc32xx/CC32xxWiFi.hxx.
|
inline |
Get the receive signal strength indicator.
Definition at line 449 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Get the receive signal strength indicator.
Definition at line 449 of file net_cc32xx/CC32xxWiFi.hxx.
| void CC32xxWiFi::wlan_set_mac | ( | uint8_t | mac[6] | ) |
Sets the device MAC address.
WARNING. The MAC address will be persistently set to the value indicated. Only a factory reset of the device can undo this operation. After calling this API there is no way to recover the factory MAC address. Make sure not to call this API too many times in the lifetime of the product, as flash wear is a concern.
| mac | 6 byte array which holds the desired MAC address. |
Definition at line 612 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::wlan_set_mac | ( | uint8_t | mac[6] | ) |
Sets the device MAC address.
WARNING. The MAC address will be persistently set to the value indicated. Only a factory reset of the device can undo this operation. After calling this API there is no way to recover the factory MAC address. Make sure not to call this API too many times in the lifetime of the product, as flash wear is a concern.
| mac | 6 byte array which holds the desired MAC address. |
| void CC32xxWiFi::wlan_set_role | ( | WlanRole | new_role | ) |
Change the default Wlan Role.
This will be used in the next start(...) if the UNKNOWN role is specified. The new setting takes effect when the device is restarted (either via reboot or stop + start).
| role | new role. Must not be UNKNOWN |
Definition at line 947 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::wlan_set_role | ( | WlanRole | new_role | ) |
Change the default Wlan Role.
This will be used in the next start(...) if the UNKNOWN role is specified. The new setting takes effect when the device is restarted (either via reboot or stop + start).
| role | new role. Must not be UNKNOWN |
| void CC32xxWiFi::wlan_set_scan_params | ( | int | mask, |
| int | min_rssi | ||
| ) |
Sets the scan parameters.
| mask | the channel mask (bit 0 = channel1, bit1=channel2). If -1 then the channel mask is not changed. |
| min_rssi | the minimal RSSI to return a wifi in the scan. If >= 0 then the min_rssi is not changed. (Default min_rssi is -95.) |
Definition at line 332 of file net_cc3220/CC32xxWiFi.cxx.
| void CC32xxWiFi::wlan_set_scan_params | ( | int | mask, |
| int | min_rssi | ||
| ) |
Sets the scan parameters.
| mask | the channel mask (bit 0 = channel1, bit1=channel2). If -1 then the channel mask is not changed. |
| min_rssi | the minimal RSSI to return a wifi in the scan. If >= 0 then the min_rssi is not changed. (Default min_rssi is -95.) |
|
overridevirtual |
Setup access point role credentials.
| ssid | access point ssid |
| security_key | access point security key |
| security_type | specifies security type |
Implements CC32xxWiFiInterface.
Definition at line 805 of file net_cc3220/CC32xxWiFi.cxx.
|
overridevirtual |
Setup access point role credentials.
| ssid | access point ssid |
| security_key | access point security key |
| security_type | specifies security type |
Implements CC32xxWiFiInterface.
|
inline |
Get the SSID of the access point we are connected to.
In AP mode gives the current advertised AP.
Definition at line 440 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Get the SSID of the access point we are connected to.
In AP mode gives the current advertised AP.
Definition at line 440 of file net_cc32xx/CC32xxWiFi.hxx.
|
inline |
Definition at line 279 of file net_cc3220/CC32xxWiFi.hxx.
|
inline |
Definition at line 279 of file net_cc32xx/CC32xxWiFi.hxx.
|
private |
Thread that will manage the WLAN connection inside object context.
Definition at line 965 of file net_cc3220/CC32xxWiFi.cxx.
|
inlinestaticprivate |
Thread that will manage the WLAN connection.
| context | context passed into the stack. |
Definition at line 623 of file net_cc3220/CC32xxWiFi.hxx.
|
inlinestaticprivate |
Thread that will manage the WLAN connection.
| context | context passed into the stack. |
Definition at line 623 of file net_cc32xx/CC32xxWiFi.hxx.
| void CC32xxWiFi::wlan_wps_pbc_initiate | ( | ) |
Initiate a WPS Push Button Control connection.
Definition at line 781 of file net_cc3220/CC32xxWiFi.cxx.
|
friend |
Definition at line 595 of file net_cc3220/CC32xxWiFi.hxx.
|
friend |
allow access to private members from CC32xxSocket
Definition at line 697 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
List of callbacks to execute on the network thread.
Definition at line 668 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
AP connected state.
Definition at line 689 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
Connection attempt failed status.
Definition at line 690 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
scan or reconnect to last AP
Definition at line 686 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
List of callbacks for http get tokens.
Definition at line 672 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
List of callbacks for http post handlers.
Definition at line 675 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
IP address aquired state.
Definition at line 691 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
Callback for when IP is acquired.
Definition at line 665 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
assigned IP adress
Definition at line 661 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
IP address leased to a client(AP mode)
Definition at line 692 of file net_cc3220/CC32xxWiFi.hxx.
|
staticconstexpr |
Pass this option as protocol to socket to create a secure socket.
Definition at line 103 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
Protects callbacks_ vector.
Definition at line 678 of file net_cc3220/CC32xxWiFi.hxx.
|
staticconstexpr |
What is the maximum number of profiles in the CC32xx.
Profile index is 0 to NUM_PROFILES-1.
Definition at line 100 of file net_cc3220/CC32xxWiFi.hxx.
|
staticconstexpr |
the value passed to wlan_profile_del() to remove all profiles
Definition at line 96 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
receive signal strength indicator
Definition at line 682 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
Disconnected due to wrong password.
Definition at line 694 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
Smart config in progress.
Definition at line 693 of file net_cc3220/CC32xxWiFi.hxx.
|
staticconstexpr |
Retrieves the socket descriptor for setting TLS parameters.
Definition at line 106 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
SSID of AP, or AP we are connected to.
Definition at line 662 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
network processor started
Definition at line 688 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
loopback socket to wakeup select()
Definition at line 680 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
the desired power policy
Definition at line 685 of file net_cc3220/CC32xxWiFi.hxx.
|
private |
the Wi-Fi role we are in
Definition at line 684 of file net_cc3220/CC32xxWiFi.hxx.