Skip to content

OTA upload error #1372

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

Closed
inseparatio opened this issue Aug 25, 2021 · 5 comments
Closed

OTA upload error #1372

inseparatio opened this issue Aug 25, 2021 · 5 comments

Comments

@inseparatio
Copy link

inseparatio commented Aug 25, 2021

When I put the otaSetup function in the main file, the OTA upload is working well (soo there is no building error), but if i try to put the OTA function in different file to make a library (also in this case the building is working well with no error). I receive the following uploading error:

Starting upload
Uploading project "Asp_V1" with "esptool_py"
no reset because we are using network upload

Launching: E:\software\Sloeber\arduinoPlugin\packages\esp32\hardware\esp32\1.0.6/tools/espota.exe -i myesp32.local -p 8266 --auth=no_pwd_found_in_code -f E:\projects\Str\Asp_V1\Release/Asp_V1.bin
Output:
Sending invitation to myesp32.local ..........
22:56:37 [ERROR]: No response from the ESP
The execution of command "1.0.6/tools/espota.exe" is done.

Thanks!

@jantje
Copy link
Member

jantje commented Aug 25, 2021

Did you try to do the same in Arduino IDE?
It looks to me as if you do something wrong when you "try to put the OTA function in different file to make a library"
Because sloeber build does not know about OTA

@inseparatio
Copy link
Author

inseparatio commented Aug 25, 2021

Yea basically I followed the example from the Arduino IDE and there everything is working well.
I've tried in different ways to add the function in a separate file.

  1. Created a new header file and put the function there.
  2. Created a new source folder and put there a header with the function.
    If and I also put a test function in all those cases to see if the function is called and everything is working well when I use the USB.
    The only problems is with the upload via OTA.

@jantje
Copy link
Member

jantje commented Aug 25, 2021

There is the password issue

Launching: E:\software\Sloeber\arduinoPlugin\packages\esp32\hardware\esp32\1.0.6/tools/espota.exe -i myesp32.local -p 8266 --auth=no_pwd_found_in_code -f E:\projects\Str\Asp_V1\Release/Asp_V1.bin

But that should not lead to

22:56:37 [ERROR]: No response from the ESP

@inseparatio
Copy link
Author

I will try to keep the OTA function in the main file, this seems to be the only working option. Soo if you will find any solution to call the OTA setup from a different file, than the main file I will be very happy to know how you did it.

Thanks for all!

@jantje
Copy link
Member

jantje commented Oct 18, 2021

A couple of issues in this area have been fixed in the nightly
#1387
#1371
Can this issue be closed?

@jantje jantje closed this as completed Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants