-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support OTA uploading. #4
Comments
It actually is. The data containing the network information for the selected network device does not get to the plugin, therefore we do not know port, password and other information that we need to execute the proper command. |
At least we know the IP address of the selected device as "serialPort" string. |
+1 for getting SPIFFS via OTA |
@igrr would it suffice to modify |
The plugin doesn't get the data (IP, port, password) from IDE, so it can not pass it to espota.py. If you can hack a solution using reflection or some other tricks, you're welcome. But as far as I can tell there is no "clean" way to get this data from plugin. |
Based on
I was just gonna guess if serialPort might be an IP. Could you highlight where the built espfs.jar need be placed for the ide to pick it up? |
you can pick up the serial port but not the password, port and other related information. |
Thats fine- at least the standard case would be good for my purpose at least. Got the plugin compiling meanwhile and will build the "default" upload thingy. |
I'm almost done with modifications for folder support and passwordless upload to the default OTA port |
Ok, sure. |
In 0.2.0 |
Hmm guys..not sure if an update to the Arduino IDE allowed this but I managed to get the password from the IDE using this:
uploader is declared as:
and requires import of:
To check whether a password is required for OTA upload: I also managed to get the password dialogue prompt to appear in the same fashion as Upload Sketch does too:
This require these extra imports:
So if you do I got these lines from the Arduino source files: GenericNetworkUploader.java and SketchController.java. I'm a total noob at Java and how Arduino IDE coding works so if this appears like a hack then it is! I'm dropping this here so someone who knows more can properly add this feature to ESP8266FS. Hope it's helpful. |
This plugin tries to program thru serial port even if OTA selected.
I can upload using espota.py -i adress -p port -s -f spiffs.bin
It cannot be hard to support this.
The text was updated successfully, but these errors were encountered: