publish wifi rssi

This commit is contained in:
technyon
2022-09-10 10:17:28 +02:00
parent e55ba8007f
commit 6bfc7f686d
9 changed files with 36 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ enum class NetworkDeviceType
class Network
{
public:
explicit Network(const NetworkDeviceType networkDevice, Preferences* preferences);
explicit Network(const NetworkDeviceType networkDevice, Preferences* preferences, const String& maintenancePathPrefix);
void initialize();
int update();
@@ -63,6 +63,7 @@ private:
char _mqttUser[31] = {0};
char _mqttPass[31] = {0};
char _mqttPresencePrefix[181] = {0};
char _maintenancePathPrefix[181] = {0};
int _networkTimeout = 0;
std::vector<MqttReceiver*> _mqttReceivers;
char* _presenceCsv = nullptr;
@@ -72,4 +73,5 @@ private:
std::map<String, String> _initTopics;
unsigned long _lastConnectedTs = 0;
unsigned long _lastMaintenancePublish = 0;
};