read_wlanini.h 729 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #ifndef READ_WLANINI_H
  3. #define READ_WLANINI_H
  4. #include <string>
  5. struct wlan_config {
  6. std::string ssid = "";
  7. std::string password = "";
  8. std::string hostname = "watermeter"; // Default: watermeter
  9. std::string ipaddress = "";
  10. std::string gateway = "";
  11. std::string netmask = "";
  12. std::string dns = "";
  13. std::string http_username = "";
  14. std::string http_password = "";
  15. int rssi_threshold = 0; // Default: 0 -> ROAMING disabled
  16. };
  17. extern struct wlan_config wlan_config;
  18. int LoadWlanFromFile(std::string fn);
  19. bool ChangeHostName(std::string fn, std::string _newhostname);
  20. bool ChangeRSSIThreshold(std::string fn, int _newrssithreshold);
  21. #endif //READ_WLANINI_H