I am unable to set a useable fixed/static IP address using an Arduino WiFi-101.
Environment: MacBook Pro, OSX 10.9.4, Arduino IDE 1.6.9, WiFi101 lib ver 0.9.1
Boards: Arduino Zero and Arduino WiFi101
The WiFi101 has been upgraded to fw level 19.4.4 - this is confirmed by running the WiFi101 example program “CheckFirmwareVersion”.
The Zero and the attached WiFi101 can associate with local WiFi net. This is confirmed setting the SSID and password for the local WiFi net and then running the WiFi101 example program “SimpleWebServerWiFi”. When executing this program I can access the Zero’s minimal web page on the DHCP supplied IP address and toggle the voltage on the Zero’s digital pin 9. This example program appears to have been lifted from the old (pre 101) Arduino WiFi examples since there is no pin 9 LED on the WiFi-101.
Then, using the example static IP code from the bottom of Arduino.cc’s web page
and setting the SSID, password, and IP, I tested setting a fixed ip of 192.168.0.200 on the Zero/WiFi101 pair. This failed - 192.168.0.200 did not respond to pings. The serial monitor shows the following on startup:
Attempting to connect to SSID: XXXXX (it does show the correct SSID which I have removed here)
IP Address: 3355486400
I have running a mixture of several UNOs, some with old style Arduino WiFI shields and some with the (apparently obsoleted) Arduino eth shields, all of which use fixed IPs - they all work as expected and show their IP address as a dotted quad on startup. I’ve never seen an Arduino (or anything else) report its IP address as a decimal.
Decoding the decimal IP, if I am not mistaken, yields the dotted quad 200.0.168.192 which is a by quad transpose of the IP specified in the code.
Does anyone have any suggestions or observations that would help me set a working fixed IP with the Arduino WiFi101?
Has anyone here successfully set a fixed IP address with the Zero/WiFi101 combination?
Setting fixed IP addresses is a requirement for this project.
Thanks for taking the time to read this and any comment you may offer,
Jmario
20160719.0243