once you uploaded via serial with the build_flagsota_password it should be on the device and does not need to be set any longer, can be commented out in the build_flags
; '-Dota_password="otapassword"'
You will then only need it in the upload_flags
Yes, it’s the same for me here.
Could it have been a mixed up IP address issue?
Does the wt32-eth01 have both the Ethernet port and WiFi active? Obviously then two different IP addresses. Did you try both with OTA?
All my OTA experience has always only ever been with WiFi, no Ethernet connected ESP.
For the upload port I generally also use the local device name, to avoid having to fight with possible changing IP addresses, even though I usually have static ones. So, depending on your network setup, it should also work with
P.S.: Just remembered, it could also just be a simple firewall issue. I had that a while back, blocking all the Python connections from my PC - making OTA also fail until I sorted the firewall out So worth having a look at your PC firewall settings or turn it off briefly for testing.
Hey, @DigiH , thanks for the response, i tried to test with the upload_port = OpenMQTTGateway_ESP32_WT32-ETH01.local
It seems like it again finds it, and seems to accept the “invitation” but then immediately fail on authentication again.
I will try to go back and upload again from the serial port to make sure that it definately has the correct configuration and password and then try OTA again.
I’m really not sure how it works having Ethernet and Esp together. I suspect that the wifi part is not active as i only have one ipaddress and the ethernet port shows a lot of activity.
Would be great to get this working, it’s a real pain to access the device where it is, and i don’t want to make another duplicate setup on the bench just for testing.
Oh, sorry, i think i’ve managed to confuse the situation, i did managed to resolve the first problem, i was just too embarassed to say that i forgot to remove the jumper from io0 to ground, so it wasn’t actually booting.
So the original issue about not finding the port is resolved, and now i just have the error immediately about Authentication failed like you said.
I did read it, but all is well, i managed to get it working. I reuploaded, and now i can see it in the port list in the arduino ide, and it works now in platformio, so that is a useful troubleshooting step!
Can’t really say what solved it, but your pointers and one of your other replies to someone elses post made it work.
arduinoOTA mdns ports keep dissapearing
-I saw that the ports keep dissapearing from the advertised list in arduinoIDE, so i started using “zeroconfservicebrowser” to see if can monitor what is happening. result is that the port for this GW keep dissapearing from the port list. seems totally random. Seems more like to appear just after plugging in.
Looked at lots of different posts for arduino ide and platformio. total rabbit hole, way above my level.
Went back to using ip address instead of .local address and it is 100% reliable in my case.