I ve been battling with the OTA functionality for more than a month but all my trials are inconclusive.
Firstly the environment:
Arduino IDE 2.3.4
ESP32 Wrover Module - home brew PCB with ESP32-WROOM-32U
Problem:
Loading the example sketch BasicOTA works first time with no other adjustments (ie firewall etc) necessary.
Problems begin when I try adding more code to the above sketch. At a certain point the network port disappears from the list. The strange thing is that i am not able to isolate which part of the extra code causes this issue.
To add to the confusion, I have a sketch working 24/7 for a few months now and the associated network port is constantly available. When I try to burn the same sketch to a second identical module, the new network port appears intermittently ! In some cases, the network port is available but by the time the sketch is complied and ready for upload, the port disappears!
Going one step further and trying to sniff the traffic with Bonjour Browser, confirms that indeed the mdns packets are sometimes present from the device in question and sometimes disappear.
Searching online, it appears that other people have faced similar problem but I havent seen a solution yet, unless of course I missed it.
SOLVED!
In case someone is reading this in the future, a bug was found in the subnet mask stored.
I use static IP settings and the subnet mask was saved as 255.255.255.255 instead of 255.255.255.0
As mentioned earlier, in my case the problem was wrong setting for the subnet mask.
Correcting this, solved the problem.
In your case, it might be something else..
Thanks Watcher,
I am not so skilled on those items: I think you refer to example\advanced .
Could you please spend few more words on this configuration please ? How to set them for proper operation ?
Thanks again for the assistance
regards,
Ambro
Watcher:
I would like to solve the problem relevant to the network port not shown in the IDE.
My sketch is using WiFi Manager to connect my home network . As told everything is working well except for the port NOT shown. You suggest to see the Examples: I think it is the advanced examples . I am not skilled on this item. COULD you please indicate to me the line of code to be changed for proper operation ? Thanks
Thanks Watcher,
The sketch suggested by you works well as expected. The point is that the network port is randomly shown by the IDE. When shown, I am able to upload sketches correctly. Again, the point is that IDE sometime shows the net port and sometime it does not show the net port. Sometime closing the IDE and then open the IDE again solvs the problem.
regards
In that case I cant think of a reason why the network port disappears sporadically .
You might wish to check your firewall settings but i doubt that is the problem.