mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
minor text changes
This commit is contained in:
@@ -34,7 +34,7 @@ void EMSESPStatusService::onStationModeDisconnected(WiFiEvent_t event, WiFiEvent
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EMSESPStatusService::onStationModeGotIP(WiFiEvent_t event, WiFiEventInfo_t info) {
|
void EMSESPStatusService::onStationModeGotIP(WiFiEvent_t event, WiFiEventInfo_t info) {
|
||||||
EMSESP::logger().debug(F("WiFi Got IP. IP=%s, hostname=%s"), WiFi.localIP().toString().c_str(), WiFi.getHostname());
|
EMSESP::logger().debug(F("WiFi connected with IP=%s, hostname=%s"), WiFi.localIP().toString().c_str(), WiFi.getHostname());
|
||||||
}
|
}
|
||||||
#elif defined(ESP8266)
|
#elif defined(ESP8266)
|
||||||
void EMSESPStatusService::onStationModeConnected(const WiFiEventStationModeConnected & event) {
|
void EMSESPStatusService::onStationModeConnected(const WiFiEventStationModeConnected & event) {
|
||||||
@@ -46,7 +46,7 @@ void EMSESPStatusService::onStationModeDisconnected(const WiFiEventStationModeDi
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EMSESPStatusService::onStationModeGotIP(const WiFiEventStationModeGotIP & event) {
|
void EMSESPStatusService::onStationModeGotIP(const WiFiEventStationModeGotIP & event) {
|
||||||
EMSESP::logger().debug(F("WiFi Got IP. IP=%s, hostname=%s"), event.ip.toString().c_str(), WiFi.hostname().c_str());
|
EMSESP::logger().debug(F("WiFi connected with IP=%s, hostname=%s"), event.ip.toString().c_str(), WiFi.hostname().c_str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ void Mqtt::queue_subscribe_message(const std::string & topic) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto message = std::make_shared<MqttMessage>(Operation::SUBSCRIBE, topic, "", false);
|
auto message = std::make_shared<MqttMessage>(Operation::SUBSCRIBE, topic, "", false);
|
||||||
LOG_DEBUG(F("Adding a subscription for %s"), topic.c_str());
|
// LOG_DEBUG(F("Adding a subscription for %s"), topic.c_str());
|
||||||
|
|
||||||
// if the queue is full, make room but removing the last one
|
// if the queue is full, make room but removing the last one
|
||||||
if (mqtt_messages_.size() >= maximum_mqtt_messages_) {
|
if (mqtt_messages_.size() >= maximum_mqtt_messages_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user