Hardware Reference
In-Depth Information
If everything is working fine, you should see the confirmation being printed in your
browser:
Setting pin D6 to output
If that's not the case, don't panic. It could simply be that the mDNS library is not compat-
ible with your computer. Try the same command again with the IP address of your
CC3000 board in place of the arduino.local alias. For example, type the following
command:
http://192.168.0.103/mode/6/o
You can now do the same for pin number 7, where I connected the second relay when
building the project. Now, we'll try to activate the first relay via Wi-Fi. Still present in
your browser, type:
http://arduino.local/digital/6/1
You should instantly hear the relay switching and the lamp being switched on if it's still
connected to your Arduino project. You will also have the immediate confirmation inside
your browser:
Pin D6 set to 1
You can also do the same for pin number 7, just to check that the other relay can also be
commanded via Wi-Fi. Of course, if you are using more relays or have connected your re-
lays differently, you can test them all at this point just by repeating the procedure we saw
in this section.
Note
Of course, all the code for this section is available on the GitHub repository of the project
at the following web page:
https://github.com/openhomeautomation/arduino-home-automation/tree/master/chapter2
Search WWH ::




Custom Search