Skip to content

Commit

Permalink
Remove not required casts
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Dec 11, 2023
1 parent 8b806e4 commit efe0b6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MqttHandleDtu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ 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()));
MqttSettings.publish("dtu/bssid", WiFi.BSSIDstr());
}
}
2 changes: 1 addition & 1 deletion src/NetworkSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void NetworkSettingsClass::setupMode()
WiFi.mode(WIFI_AP_STA);
String ssidString = getApName();
WiFi.softAPConfig(apIp, apIp, apNetmask);
WiFi.softAP((const char*)ssidString.c_str(), Configuration.get().Security.Password);
WiFi.softAP(ssidString.c_str(), Configuration.get().Security.Password);
dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
dnsServerStatus = true;
Expand Down

0 comments on commit efe0b6b

Please sign in to comment.