Skip to content
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

Upload a configuration file using telnet or REST API #335

Closed
xoseperez opened this issue Dec 20, 2017 · 3 comments
Closed

Upload a configuration file using telnet or REST API #335

xoseperez opened this issue Dec 20, 2017 · 3 comments
Labels
enhancement New feature or request major wifi

Comments

@xoseperez
Copy link
Owner

Originally reported by: Shruti (Bitbucket: shrutichawla, GitHub: shrutichawla)


Hello,

Goal : I would like to detect, configure and pair my ESPurna powered sonoff device using a mobile application (just like ewelink pairs) , so user need not have to configure via a browser interface.

My mobile application can find a accesspoint with name "ESPURNA_XXXXXX" and connect to it using a default password (fibonacci).

Now, I could not figure out a way to "Upload configuration" file programmatically (file which have user's wifi credentials) via Telnet / REST.

Please suggest, the steps I should take to implement this

I really appreciate all that you do.

Thank you very much!

Shruti

@xoseperez
Copy link
Owner Author

The latest version on the dev branch allows the user to upload the configuration file via HTTP put:

curl -u admin:fibonacci -i -X POST -H "Content-Type: multipart/form-data"  -F "data=@backup.json" http://192.168.1.10/config

And the reset the board:

curl -u admin:fibonacci -i http://192.168.1.10/reset

@xoseperez
Copy link
Owner Author

Released with 1.11.0

@xoseperez
Copy link
Owner Author

Removing milestone: 1.11.0 (automated comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request major wifi
Projects
None yet
Development

No branches or pull requests

1 participant