mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 03:26:53 +03:00
* Ported https://github.com/jomjol/AI-on-the-edge-device/pull/2241 to latest main and extended it for all REST APIs * . * fix compile errors * . * . * Update Changelog.md * Update Changelog.md --------- Co-authored-by: CaCO3 <caco@ruinelli.ch> Co-authored-by: michael <Heinrich-Tuning@web.de>
28 lines
729 B
C++
28 lines
729 B
C++
#pragma once
|
|
|
|
#ifndef READ_WLANINI_H
|
|
#define READ_WLANINI_H
|
|
|
|
#include <string>
|
|
|
|
struct wlan_config {
|
|
std::string ssid = "";
|
|
std::string password = "";
|
|
std::string hostname = "watermeter"; // Default: watermeter
|
|
std::string ipaddress = "";
|
|
std::string gateway = "";
|
|
std::string netmask = "";
|
|
std::string dns = "";
|
|
std::string http_username = "";
|
|
std::string http_password = "";
|
|
int rssi_threshold = 0; // Default: 0 -> ROAMING disabled
|
|
};
|
|
extern struct wlan_config wlan_config;
|
|
|
|
|
|
int LoadWlanFromFile(std::string fn);
|
|
bool ChangeHostName(std::string fn, std::string _newhostname);
|
|
bool ChangeRSSIThreshold(std::string fn, int _newrssithreshold);
|
|
|
|
|
|
#endif //READ_WLANINI_H
|