Skip to content

Commit

Permalink
Feature: Publish BSSID via MQTT
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Jun 8, 2023
1 parent 91d3cd1 commit b3e41c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MqttHandleDtu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ void MqttHandleDtuClass::loop()
MqttSettings.publish("dtu/hostname", NetworkSettings.getHostname());
if (NetworkSettings.NetworkMode() == network_mode::WiFi) {
MqttSettings.publish("dtu/rssi", String(WiFi.RSSI()));
MqttSettings.publish("dtu/bssid", String(WiFi.BSSIDstr()));
}

_lastPublish = millis();
Expand Down

0 comments on commit b3e41c9

Please sign in to comment.