Arduino by Example by 2015

Arduino by Example by 2015

Author:2015
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


If you watched your Serial Monitor while doing this, you will have noticed that it takes quite some time to acquire the DHCP settings. For example, IP Addr is the unique number given by the router to allow CC3000 to connect to the router. However, what happens sometimes is that the router is restarted (power outage), thus the IP address might change. Since ultimately we will not be always monitoring the Serial Monitor for IP Addr, let us give it a constant, one that solves both the problems, namely, the long time it takes to get DHCP settings and the possibility of the IP address changing. Use the latest driverpatch_X_XX.ino example to update the firmware if it isn't updated already.

Load the buildtest_staticIP.ino file that came with this book. The main difference in this code is that we have uncommented a part of the code (highlighted in the following image) and changed the IP address to match the preceding image:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.