Day 4: Setting up Internet connection
Behind today’s door is a 1-kohm resistor. We’re not going to do much with it today, but tomorrow it becomes important. In today’s test, we want to set up an initial connection to your home WLAN network. For this purpose, you need, as you will on many days to come, to enter your WLAN data in the programme.
But first you need to download today’s programme. You can download it via the right button on the from the Arduino Create Iframe.
When you’ve opened the programme in the Arduino IDE, you will see at the very first two DEFINES. This is where you have to enter your WLAN name and the password. Only then can you upload the programme. You can now check the status of the WLAN connection on the serial monitor. In the ideal case, you’ll see “WLAN Connected” there. The LED D3 also lights up. If you run into problems, you’ll find help in the commentary section.
After the connection, yet more messages appear on the serial monitor. First, the IP address of the board is given once. It was assigned to the NanoESP by the router and is the board’s address in the local network. After that, the board pings a server on the Internet to test whether it is connected to the Internet. If everything functions, a suitable message appears on the serial monitor and the answer time in milliseconds that passed from the sending of the ping to reception of the answer. You may recognise this ping value from online games. The connection to the Internet now exists, and you are ready to take larger steps with the board.