File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ Topic: co2-meter/`{device ID}`/out/`{command}`
96
96
| network.wifiQuality | quality of signal strength (value between 0 and 100%) | number |
97
97
| network.wifiSsid | SSID of connected wifi | string |
98
98
| network.ip | ip address of the module | string |
99
+ | network.mac | MAC address of the device | string |
99
100
| co2.isPreheating | TRUE if the sensor is preheated | boolean |
100
101
| co2.temperature | temperature from sensor (in °C) | number |
101
102
| co2.ppm | CO2 concentration in the air (in ppm) | number |
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ void onWiFiEvent(WiFiEvent_t event)
110
110
}
111
111
}
112
112
113
- int GetRssiAsQuality (int rssi)
113
+ int getRssiAsQuality (int rssi)
114
114
{
115
115
int quality = 0 ;
116
116
@@ -151,9 +151,10 @@ DynamicJsonDocument getInfoJson()
151
151
JsonObject network = doc.createNestedObject (" network" );
152
152
int8_t rssi = WiFi.RSSI ();
153
153
network[" wifiRssi" ] = rssi;
154
- network[" wifiQuality" ] = GetRssiAsQuality (rssi);
154
+ network[" wifiQuality" ] = getRssiAsQuality (rssi);
155
155
network[" wifiSsid" ] = WiFi.SSID ();
156
156
network[" ip" ] = WiFi.localIP ().toString ();
157
+ network[" mac" ] = WiFi.macAddress ();
157
158
158
159
// CO2 meter
159
160
JsonObject co2Meter = doc.createNestedObject (" co2" );
You can’t perform that action at this time.
0 commit comments