mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 05:36:39 +00:00
Replace APMac with BSSId
Replace APMac with BSSId in state and status 11
This commit is contained in:
parent
9ff3233b97
commit
2210bda2e6
@ -39,6 +39,7 @@
|
|||||||
#define D_JSON_BLOCKED_LOOP "Blocked Loop"
|
#define D_JSON_BLOCKED_LOOP "Blocked Loop"
|
||||||
#define D_JSON_BOOTVERSION "Boot"
|
#define D_JSON_BOOTVERSION "Boot"
|
||||||
#define D_JSON_BOOTCOUNT "BootCount"
|
#define D_JSON_BOOTCOUNT "BootCount"
|
||||||
|
#define D_JSON_BSSID "BSSId"
|
||||||
#define D_JSON_BUILDDATETIME "BuildDateTime"
|
#define D_JSON_BUILDDATETIME "BuildDateTime"
|
||||||
#define D_JSON_CHANNEL "Channel"
|
#define D_JSON_CHANNEL "Channel"
|
||||||
#define D_JSON_CO2 "CarbonDioxide"
|
#define D_JSON_CO2 "CarbonDioxide"
|
||||||
|
@ -1532,8 +1532,8 @@ void MqttShowState()
|
|||||||
MqttShowPWMState();
|
MqttShowPWMState();
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s,\"" D_JSON_WIFI "\":{\"" D_JSON_AP "\":%d,\"" D_JSON_SSID "\":\"%s\",\"" D_JSON_CHANNEL "\":%d,\"" D_JSON_RSSI "\":%d,\"" D_JSON_APMAC_ADDRESS "\":\"%s\"}}"),
|
snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s,\"" D_JSON_WIFI "\":{\"" D_JSON_AP "\":%d,\"" D_JSON_SSID "\":\"%s\",\"" D_JSON_BSSID "\":\"%s\",\"" D_JSON_CHANNEL "\":%d,\"" D_JSON_RSSI "\":%d}}"),
|
||||||
mqtt_data, Settings.sta_active +1, Settings.sta_ssid[Settings.sta_active], WiFi.channel(), WifiGetRssiAsQuality(WiFi.RSSI()), WiFi.BSSIDstr().c_str());
|
mqtt_data, Settings.sta_active +1, Settings.sta_ssid[Settings.sta_active], WiFi.BSSIDstr().c_str(), WiFi.channel(), WifiGetRssiAsQuality(WiFi.RSSI()));
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean MqttShowSensor()
|
boolean MqttShowSensor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user