this is using the mbed os version 5-13-1

Dependencies:   mbed-http

Committer:
ocomeni
Date:
Sat Mar 16 13:05:52 2019 +0000
Revision:
78:07bb86e3ce14
Child:
79:a2187bbfa407
Main Manager class constructors and configuration structures implemented.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ocomeni 78:07bb86e3ce14 1 #ifndef __WIFI_MANAGER_H__
ocomeni 78:07bb86e3ce14 2 #define __WIFI_MANAGER_H__
ocomeni 78:07bb86e3ce14 3 #include "common_types.h"
ocomeni 78:07bb86e3ce14 4
ocomeni 78:07bb86e3ce14 5 class WiFiManager {
ocomeni 78:07bb86e3ce14 6 public:
ocomeni 78:07bb86e3ce14 7 WiFiManager(wifi_config_t wifi_config, WiFiInterface *wifi);
ocomeni 78:07bb86e3ce14 8 ~WiFiManager();
ocomeni 78:07bb86e3ce14 9 void scanChannels();
ocomeni 78:07bb86e3ce14 10 void getAvailableAPs();
ocomeni 78:07bb86e3ce14 11 void set_WIFI_SSID(char * wifi_ssid);
ocomeni 78:07bb86e3ce14 12 void set_WIFI_PASSWORD(char * wifi_pass);
ocomeni 78:07bb86e3ce14 13 void set_WIFI_SECURITY(nsapi_security_t wifi_security);
ocomeni 78:07bb86e3ce14 14 void connect();
ocomeni 78:07bb86e3ce14 15 void disconnect();
ocomeni 78:07bb86e3ce14 16 void sendHttpsRequest();
ocomeni 78:07bb86e3ce14 17 void sendHttpRequest();
ocomeni 78:07bb86e3ce14 18
ocomeni 78:07bb86e3ce14 19
ocomeni 78:07bb86e3ce14 20
ocomeni 78:07bb86e3ce14 21 private:
ocomeni 78:07bb86e3ce14 22 wifi_config_t wifi_config;
ocomeni 78:07bb86e3ce14 23 WiFiInterface *network;
ocomeni 78:07bb86e3ce14 24 /**
ocomeni 78:07bb86e3ce14 25 * Allows timeout to be changed between commands
ocomeni 78:07bb86e3ce14 26 *
ocomeni 78:07bb86e3ce14 27 * @param timeout_ms timeout of the connection
ocomeni 78:07bb86e3ce14 28 */
ocomeni 78:07bb86e3ce14 29 //void set_timeout(uint32_t timeout_ms = UBLOX_ODIN_W2_MISC_TIMEOUT);
ocomeni 78:07bb86e3ce14 30 };
ocomeni 78:07bb86e3ce14 31 #endif // __WIFI_MANAGER_H__