Okundu Omeni
/
wifi-https-ble-sm-uart-atcmd-5-13-1
this is using the mbed os version 5-13-1
source/WiFiManager.cpp@78:07bb86e3ce14, 2019-03-16 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
ocomeni | 78:07bb86e3ce14 | 1 | #include "WiFiManager.h" |
ocomeni | 78:07bb86e3ce14 | 2 | #include "common_config.h" |
ocomeni | 78:07bb86e3ce14 | 3 | |
ocomeni | 78:07bb86e3ce14 | 4 | |
ocomeni | 78:07bb86e3ce14 | 5 | WiFiManager::WiFiManager(wifi_config_t wifi_config, WiFiInterface *wifi) |
ocomeni | 78:07bb86e3ce14 | 6 | : |
ocomeni | 78:07bb86e3ce14 | 7 | wifi_config(wifi_config), |
ocomeni | 78:07bb86e3ce14 | 8 | network(wifi) |
ocomeni | 78:07bb86e3ce14 | 9 | |
ocomeni | 78:07bb86e3ce14 | 10 | { |
ocomeni | 78:07bb86e3ce14 | 11 | } |
ocomeni | 78:07bb86e3ce14 | 12 | |
ocomeni | 78:07bb86e3ce14 | 13 | WiFiManager::~WiFiManager() |
ocomeni | 78:07bb86e3ce14 | 14 | { |
ocomeni | 78:07bb86e3ce14 | 15 | } |
ocomeni | 78:07bb86e3ce14 | 16 | void WiFiManager::scanChannels() |
ocomeni | 78:07bb86e3ce14 | 17 | { |
ocomeni | 78:07bb86e3ce14 | 18 | } |
ocomeni | 78:07bb86e3ce14 | 19 | void WiFiManager::getAvailableAPs() |
ocomeni | 78:07bb86e3ce14 | 20 | { |
ocomeni | 78:07bb86e3ce14 | 21 | } |
ocomeni | 78:07bb86e3ce14 | 22 | void WiFiManager::set_WIFI_SSID(char * wifi_ssid) |
ocomeni | 78:07bb86e3ce14 | 23 | { |
ocomeni | 78:07bb86e3ce14 | 24 | strcpy(wifi_config.ssid, wifi_ssid); |
ocomeni | 78:07bb86e3ce14 | 25 | } |
ocomeni | 78:07bb86e3ce14 | 26 | void WiFiManager::set_WIFI_PASSWORD(char * wifi_pass) |
ocomeni | 78:07bb86e3ce14 | 27 | { |
ocomeni | 78:07bb86e3ce14 | 28 | strcpy(wifi_config.pass, wifi_pass); |
ocomeni | 78:07bb86e3ce14 | 29 | } |
ocomeni | 78:07bb86e3ce14 | 30 | void WiFiManager::set_WIFI_SECURITY(nsapi_security_t wifi_security) |
ocomeni | 78:07bb86e3ce14 | 31 | { |
ocomeni | 78:07bb86e3ce14 | 32 | wifi_config.security = wifi_security; |
ocomeni | 78:07bb86e3ce14 | 33 | } |
ocomeni | 78:07bb86e3ce14 | 34 | void WiFiManager::connect() |
ocomeni | 78:07bb86e3ce14 | 35 | { |
ocomeni | 78:07bb86e3ce14 | 36 | } |
ocomeni | 78:07bb86e3ce14 | 37 | void WiFiManager::disconnect() |
ocomeni | 78:07bb86e3ce14 | 38 | { |
ocomeni | 78:07bb86e3ce14 | 39 | } |
ocomeni | 78:07bb86e3ce14 | 40 | void WiFiManager::sendHttpsRequest() |
ocomeni | 78:07bb86e3ce14 | 41 | { |
ocomeni | 78:07bb86e3ce14 | 42 | } |
ocomeni | 78:07bb86e3ce14 | 43 | void WiFiManager::sendHttpRequest() |
ocomeni | 78:07bb86e3ce14 | 44 | { |
ocomeni | 78:07bb86e3ce14 | 45 | } |