Hi, I need update IP address of my ethernet shield in realtime. When I install my arduino + ethernet shield on client, he can update IP address in any moment, then publish information in this new IP.
How I make this?
Thanks
Hi, I need update IP address of my ethernet shield in realtime. When I install my arduino + ethernet shield on client, he can update IP address in any moment, then publish information in this new IP.
How I make this?
Thanks
When I install my arduino + ethernet shield on client, he can update IP address in any moment
How does the client get a new IP address while it is running? What is changing it's IP address? If it is your router doing it, make the router stop!
My idea is that when the customer install the module in your network it will be able to configure the IP in the desired range.
If I compile a static IP in my code and send it to the client can get there and change somehow (Serial, Ethernet)?
Thanks
What is sounds like is on powerup the Arduino w/ Ethernet shield should get an address from the router. You as a coder can't possibly know what this IP address is. So you should look for using DHCP with the Ethernet shield. (I believe this is covered in the Ethernet shield examples, specifically the DhcpAddressPrinter example.)
I hope this helps, and good luck with your project.
My idea is that when the customer install the module in your network it will be able to configure the IP in the desired range.
OK. Sounds reasonable. How?
Do the assignment of a value to IPAddress BEFORE calling Ethernet.begin() and you'll be fine.