Day 3: The NanoESP in access point mode
Behind the third door is the jumper wire, which is important for many tests. To prepare for later tests, you can place the supply lines GND and VCC on the outermost lanes. You’ll thereby have better access to these important lines later.
In the project for today, you now get around to changing something in a programme even on your own. The following sample programme serves as a basis:
File > Samples > NanoESP > Basics > AccessPoint
When you upload this programme, you won’t see any change at first. There is still an open WLAN with the name NanoESP in range. However, if you now change line 16 in the programme with the configWifi command, the access point settings also change. You can replace the "NanoESP" in quotation marks with another WLAN name, or you can even define a password for the network by adjusting the last parameter of the function. The password must have at least eight characters. A possible example is:
nanoesp.configWifi(ACCESSPOINT, “MyNanoESP”, “MyPassword”);
Then you need to upload the programme again. If the configuration was successful, the LED D3 lights up for confirmation. If there is an error, the LED does not light up and you need to check the settings. It’s never been easier to create your own WLAN.