Only DHCP works

Good morning.
I have a working project. The arduinos are loaded from different laptops. Sometimes a laptop "changes" somehow, and this laptop can not load the software with fixed IP, only with DHCP.
There is a line in consts.h, where that can be changed (DHCP yes/no).
The other laptops are still able do load the software with fixed IP. Once, the reinstallation of the IDE did the trick, and the laptop could load fixed IPs again. But now I have one, where the reinstallation does not change the behaviour.
I can not find out, what the problem is. The libraries and IDE version are all the same.
So I thought, it might still be something with my project, and the not working laptops have an issue with cached compilations or such things.
Therefore I present you the code. Maybe someone points at a distinct line and says: "That is not correct and can cause such problems."
“Help me Obi-Wan Kenobi, You’re my only hope.”

Sincerely,
Aksels

BluLeAktuell.zip (10,4 KB)

Hi @aksels,

welcome to the Arduino forum!

Most members do not like external links... It is highly recommended to upload the code to the forum. One simple reason is that external ressources may change without notice and will not allow to follow the post in future.

To get the best out of the forum please read

You'll find help how to post code there also!

Good luck!
ec2021

Thank you. Changed it.

Does the error occur during the unload, after a successful compilation, or during the compile?

Hi.
After the download I send the IP-address to serial port. If it worked correctly, the serial sent IP will be the IP entered in consts.h. When it does not work it always shows IP 0.0.0.0

Sincerely,
Aksels

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.