I've just wired this up and tried again with 1v69. Everything still works perfectly for me - DHCP, http get, server, etc.
What exactly fails when you do eth.setIP()? What does it say?
And does eth.getIP() work for you? what does that say? It might be that the module is wired up wrong.
What is the IP range on your network? The chip automatically sets its IP to 192.168.1.2 on bootup, and I wonder whether if you're outside of the 192.168 range, the netmask might stop DHCP from working properly.
You could try manually setting the IP to something in your range with something like eth.setIP({ip:"10.0.0.2"}), and then you could kick off DHCP with eth.setIP().
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I've just wired this up and tried again with 1v69. Everything still works perfectly for me - DHCP, http get, server, etc.
What exactly fails when you do
eth.setIP()
? What does it say?And does
eth.getIP()
work for you? what does that say? It might be that the module is wired up wrong.What is the IP range on your network? The chip automatically sets its IP to 192.168.1.2 on bootup, and I wonder whether if you're outside of the 192.168 range, the netmask might stop DHCP from working properly.
You could try manually setting the IP to something in your range with something like
eth.setIP({ip:"10.0.0.2"})
, and then you could kick off DHCP witheth.setIP()
.