this is using the mbed os version 5-13-1
source/WifiManager.h@75:08eff6258e1b, 2019-03-14 (annotated)
- Committer:
- ocomeni
- Date:
- Thu Mar 14 21:34:06 2019 +0000
- Revision:
- 75:08eff6258e1b
Ble Security example now working!
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ocomeni | 75:08eff6258e1b | 1 | #ifndef __WIFI_MANAGER_H__ |
| ocomeni | 75:08eff6258e1b | 2 | #define __WIFI_MANAGER_H__ |
| ocomeni | 75:08eff6258e1b | 3 | |
| ocomeni | 75:08eff6258e1b | 4 | class WifiManager { |
| ocomeni | 75:08eff6258e1b | 5 | public: |
| ocomeni | 75:08eff6258e1b | 6 | WifiManager(); |
| ocomeni | 75:08eff6258e1b | 7 | public: |
| ocomeni | 75:08eff6258e1b | 8 | void scanChannels(); |
| ocomeni | 75:08eff6258e1b | 9 | void getAvailableAPs(); |
| ocomeni | 75:08eff6258e1b | 10 | void connect2AP(const char * WIFI_SSID, const char * WIFI_PASSWORD); |
| ocomeni | 75:08eff6258e1b | 11 | void sendHttpsRequest(); |
| ocomeni | 75:08eff6258e1b | 12 | void sendHttpRequest(); |
| ocomeni | 75:08eff6258e1b | 13 | |
| ocomeni | 75:08eff6258e1b | 14 | |
| ocomeni | 75:08eff6258e1b | 15 | |
| ocomeni | 75:08eff6258e1b | 16 | private: |
| ocomeni | 75:08eff6258e1b | 17 | |
| ocomeni | 75:08eff6258e1b | 18 | /** |
| ocomeni | 75:08eff6258e1b | 19 | * Allows timeout to be changed between commands |
| ocomeni | 75:08eff6258e1b | 20 | * |
| ocomeni | 75:08eff6258e1b | 21 | * @param timeout_ms timeout of the connection |
| ocomeni | 75:08eff6258e1b | 22 | */ |
| ocomeni | 75:08eff6258e1b | 23 | void set_timeout(uint32_t timeout_ms = UBLOX_ODIN_W2_MISC_TIMEOUT); |
| ocomeni | 75:08eff6258e1b | 24 | }; |
| ocomeni | 75:08eff6258e1b | 25 | #endif |