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

Dependencies:   mbed-http

source/WifiManager.h

Committer:
ocomeni
Date:
2019-03-14
Revision:
75:08eff6258e1b

File content as of revision 75:08eff6258e1b:

#ifndef __WIFI_MANAGER_H__
#define __WIFI_MANAGER_H__

class WifiManager {
public:
    WifiManager();
public:
    void scanChannels();
    void getAvailableAPs();
    void connect2AP(const char * WIFI_SSID, const char * WIFI_PASSWORD);
    void sendHttpsRequest();
    void sendHttpRequest();



private:
    
    /**
    * 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