mbed Connector Endpoint interface. This interface permits a mbed endpoint to easily setup MDS resources and emit those resources to an MDS server.
Dependents: IoT_LED_demo ServoTest uWater_Project hackathon ... more
Diff: api/Options.h
- Revision:
- 15:8ada80242804
- Parent:
- 4:84159d67d32d
- Child:
- 19:e2cbaeeea509
--- a/api/Options.h Tue Feb 03 06:51:34 2015 +0000 +++ b/api/Options.h Thu Feb 05 14:49:04 2015 +0000 @@ -39,6 +39,14 @@ typedef vector<StaticResource *> StaticResourcesList; typedef vector<DynamicResource *> DynamicResourcesList; +// WiFi Security types +typedef enum { + WIFI_WPA_PERSONAL, + WIFI_WPA2_PERSONAL, + WIFI_WEP, + WIFI_NUM_TYPES +} WiFiAuthTypes; + namespace Connector { /** Options class @@ -115,6 +123,21 @@ Get the list of dynamic resources */ DynamicResourcesList *getDynamicResourceList(); + + /** + Get the WiFi SSID + */ + string getWiFiSSID(); + + /** + Get the WiFi Auth Type + */ + WiFiAuthTypes getWiFiAuthType(); + + /** + Get the WiFi Auth Key + */ + string getWiFiAuthKey(); protected: char *m_lifetime; @@ -128,6 +151,11 @@ uint8_t m_mac_address[NODE_MAC_ADDRESS_LENGTH]; StaticResourcesList m_static_resources; DynamicResourcesList m_dynamic_resources; + + // WiFi Resources + string m_wifi_ssid; + string m_wifi_auth_key; + WiFiAuthTypes m_wifi_auth_type; }; } // namespace Connector