What If It Doesn’t Work?
Networks are complex and complicated beasts, and many things can go wrong when trying the examples in this chapter. The most common problems are the following:
-
You have chosen the wrong serial port in the Processing application. By default, the application uses the first serial port it can find. It might be that you have connected your Arduino to another port. In this case, you have to change the index 0 in the statement arduinoPort = new Serial(this, Serial.list()[0], BAUD_RATE); accordingly.
-
You forgot to plug the Ethernet cable into the Ethernet shield.
-
Your network router has a MAC whitelist that allows only certain MAC addresses to access the network. Make sure that the MAC address you use in your sketches is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access