read_wlanini.h 657 B

1234567891011121314151617181920212223242526
  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. int rssi_threshold = 0; // Default: 0 -> ROAMING disabled
  14. };
  15. extern struct wlan_config wlan_config;
  16. int LoadWlanFromFile(std::string fn);
  17. bool ChangeHostName(std::string fn, std::string _newhostname);
  18. bool ChangeRSSIThreshold(std::string fn, int _newrssithreshold);
  19. #endif //READ_WLANINI_H