mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 11:36:51 +03:00
* WLAN: add error handling * WLAN: parameter global struct * WLAN.ini -> more info text * RSSIThreshold * Rename logs * Boot process: error handling * Update texts * Comments * Init sequence * Prepare for check dir creation * add check makedir, update logs * Blink code for OTA+SoftAP * Blink code for missing time snyc * Update * reboot -> switch LED off * Update log texts * Update * Update log texts * create empty default folders at startup * Update * Adapt log level * Print log level switch * Update * Update text * Add SD free space to log * WIFI/MQTT disconnect message set to WARN (+ ERROR)
26 lines
657 B
C++
26 lines
657 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 = "";
|
|
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
|