Done this form a Linux laptop's command line.
For uploading to Arduino boards, I have been using (via the usual USB port connection) the command line methods as detailed at: https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc For the OTA method of uploading to the ESP, I just chanced to discover the following method.
As the argument to "--port", I just used the ip of the wifi connected ESP board.
Let us say I want to upload a sketch "myexample1.ino" to my ESP8266 board "ESP-01 (1MB)" having OTA firmware on it. Am using Arduino 1.8.8 and ESP8266 community version 2.4.2. As already stated, the ESP-01 has the example sketch "BasicOTA.ino" uploaded to it via the usual USB port. Now, the ESP-01 is not connected via USB. It is connected to my wifi router at an ip (say, 192.168.22.221). The following command successfully uploaded the code:
~/Arduino/myexample1 $ arduino --upload myexample1.ino -- portport 192.168.22.221
Just felt like sharing a nice experience not found reported elsewhere on the internet.
Done this form a Linux laptop's command line.
For uploading to Arduino boards, I have been using (via the usual USB port connection) the command line methods as detailed at: https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc For the OTA method of uploading to the ESP, I just chanced to discover the following method.
As the argument to "--port", I just used the ip of the wifi connected ESP board.
Let us say I want to upload a sketch "myexample1.ino" to my ESP8266 board "ESP-01 (1MB)" having OTA firmware on it. Am using Arduino 1.8.8 and ESP8266 community version 2.4.2. As already stated, the ESP-01 has the example sketch "BasicOTA.ino" uploaded to it via the usual USB port. Now, the ESP-01 is not connected via USB. It is connected to my wifi router at an ip (say, 192.168.22.221). The following command successfully uploaded the code:
~/Arduino/myexample1 $ arduino --upload myexample1.ino -- port 192.168.22.221
Just felt like sharing a nice experience not found reported elsewhere on the internet.
Done this form a Linux laptop's command line.
For uploading to Arduino boards, I have been using (via the usual USB port connection) the command line methods as detailed at: https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc For the OTA method of uploading to the ESP, I just chanced to discover the following method.
As the argument to "--port", I just used the ip of the wifi connected ESP board.
Let us say I want to upload a sketch "myexample1.ino" to my ESP8266 board "ESP-01 (1MB)" having OTA firmware on it. Am using Arduino 1.8.8 and ESP8266 community version 2.4.2. As already stated, the ESP-01 has the example sketch "BasicOTA.ino" uploaded to it via the usual USB port. Now, the ESP-01 is not connected via USB. It is connected to my wifi router at an ip (say, 192.168.22.221). The following command successfully uploaded the code:
~/Arduino/myexample1 $ arduino --upload myexample1.ino --port 192.168.22.221
Just felt like sharing a nice experience not found reported elsewhere on the internet.
Done this form a Linux laptop's command line.
For uploading to Arduino boards, I have been using (via the usual USB port connection) the command line methods as detailed at: https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc For the OTA method of uploading to the ESP, I just chanced to discover the following method.
As the argument to "--port", I just used the ip of the wifi connected ESP board.
Let us say I want to upload a sketch "myexample1.ino" to my ESP8266 board "ESP-01 (1MB)" having OTA firmware on it. Am using Arduino 1.8.8 and ESP8266 community version 2.4.2. As already stated, the ESP-01 has the example sketch "BasicOTA.ino" uploaded to it via the usual USB port. Now, the ESP-01 is not connected via USB. It is connected to my wifi router at an ip (say, 192.168.22.221). The following command successfully uploaded the code:
~/Arduino/myexample1 $ arduino --upload myexample1.ino -- port 192.168.22.221
Just felt like sharing a nice experience not found reported elsewhere on the internet.