Okundu Omeni
/
wifi-https-ble-sm-uart-atcmd-5-13-1
this is using the mbed os version 5-13-1
Diff: source/WiFiManager.h
- Revision:
- 78:07bb86e3ce14
- Child:
- 79:a2187bbfa407
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/source/WiFiManager.h Sat Mar 16 13:05:52 2019 +0000 @@ -0,0 +1,31 @@ +#ifndef __WIFI_MANAGER_H__ +#define __WIFI_MANAGER_H__ +#include "common_types.h" + +class WiFiManager { +public: + WiFiManager(wifi_config_t wifi_config, WiFiInterface *wifi); + ~WiFiManager(); + void scanChannels(); + void getAvailableAPs(); + void set_WIFI_SSID(char * wifi_ssid); + void set_WIFI_PASSWORD(char * wifi_pass); + void set_WIFI_SECURITY(nsapi_security_t wifi_security); + void connect(); + void disconnect(); + void sendHttpsRequest(); + void sendHttpRequest(); + + + +private: + wifi_config_t wifi_config; + WiFiInterface *network; + /** + * Allows timeout to be changed between commands + * + * @param timeout_ms timeout of the connection + */ + //void set_timeout(uint32_t timeout_ms = UBLOX_ODIN_W2_MISC_TIMEOUT); +}; +#endif // __WIFI_MANAGER_H__ \ No newline at end of file