There is also no need for ArduinoOTA.setPort(8266); unless you want a port other than 8266, as this is the port the ArduinoOTA code will default to. I would be checking that the IP is pingable and that your firewall isn’t blocking access, assuming that you have tested this to be working with the stock example sketch first to make sure the fault isn’t somewhere in your code.
Haciendo ping a 192.168.1.50 con 32 bytes de datos:
Respuesta desde 192.168.1.50: bytes=32 tiempo=338ms TTL=255
Respuesta desde 192.168.1.50: bytes=32 tiempo=26ms TTL=255
Respuesta desde 192.168.1.50: bytes=32 tiempo=51ms TTL=255
Respuesta desde 192.168.1.50: bytes=32 tiempo=67ms TTL=255
Estadísticas de ping para 192.168.1.50:
Paquetes: enviados = 4, recibidos = 4, perdidos = 0
(0% perdidos),
Tiempos aproximados de ida y vuelta en milisegundos:
Mínimo = 26ms, Máximo = 338ms, Media = 120ms
With Arduino IDE BasicOTA.ino run ok.
¿Help please? I would like works with Platformio and OTA.