Skip to content

Commit fdf676a

Browse files
committed
fix code examples in readme
1 parent 02ba38c commit fdf676a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ These can be used to observe changes to settings. They can also be used to fetch
491491
Inspect the current WiFi settings:
492492

493493
```cpp
494-
esp8266React.getWiFiSettingsService()->read([&](WiFiSettings& settings) {
494+
esp8266React.getWiFiSettingsService()->read([&](WiFiSettings& wifiSettings) {
495495
Serial.print("The ssid is:");
496496
Serial.println(wifiSettings.ssid);
497497
});
@@ -500,7 +500,7 @@ esp8266React.getWiFiSettingsService()->read([&](WiFiSettings& settings) {
500500
Configure the WiFi SSID and password manually:
501501
502502
```cpp
503-
esp8266React.getWiFiSettingsService()->update([&](WiFiSettings& settings) {
503+
esp8266React.getWiFiSettingsService()->update([&](WiFiSettings& wifiSettings) {
504504
wifiSettings.ssid = "MyNetworkSSID";
505505
wifiSettings.password = "MySuperSecretPassword";
506506
}, "myapp");

0 commit comments

Comments
 (0)