connect_wlan.h 647 B

12345678910111213141516171819202122
  1. #pragma once
  2. #ifndef CONNECT_WLAN_H
  3. #define CONNECT_WLAN_H
  4. #include <string>
  5. void wifi_init_sta(const char *_ssid, const char *_password, const char *_hostname, const char *_ipadr, const char *_gw, const char *_netmask, const char *_dns, int _rssithreashold);
  6. void wifi_init_sta(const char *_ssid, const char *_password, const char *_hostname);
  7. void wifi_init_sta(const char *_ssid, const char *_password);
  8. std::string* getIPAddress();
  9. std::string* getSSID();
  10. int get_WIFI_RSSI();
  11. bool getWIFIisConnected();
  12. void WIFIDestroy();
  13. extern std::string hostname;
  14. extern std::string std_hostname;
  15. extern int RSSIThreashold;
  16. #endif //CONNECT_WLAN_H