-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Provisioning more than ssid and password (Discussion) (IDFGH-13601) #14488
Conversation
|
👋 Hello eug-ev, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
This functionality already exists, you can use calls to wifi_prov_mgr_endpoint_create/wifi_prov_mgr_endpoint_register to add additional endpoints to receive your custom data, so in your case likely one for the telegram bot token, and one for the user ID |
Thanks for the answers and sorry I hadn't researched more for this. Does Android app supports some extra endpoints for custom data? I've found only one related function in Android repo, sendDataToCustomEndpoint. My point was to add some support in already existing application. |
|
Yes this Api will help. If you need example or some issue you can file an issue regarding this api on this repo |
As API is already available for custom data as mentioned above, so closing this PR. |
Hi!
I've recently done a little change to wifi_provisioning library to support custom data provisioning along with wifi ssid and password.
Briefly, how it works:
If we pass this to password:
!@CDATA_%DATA_LEN%%DATA%%WifiPassword%
It would parse this string and place DATA in nvs as blob.
As example:
!@CDATA_QwAAAA==tok=1234567890:AIHyuaZFjK6qegPCojGJI0_0l7GPUNV8_PD,userid=123456789asdfzxcvb
where %DATA_LEN% is QwAAAA== (0x43),
wifi password - asdfzxcvb
Not ideal solution but it works!
Maybe some ideas for improvement or redesign to have this in idf?
Rationale: I needed to provision telegram bot token and my telegram user ID, apart from wifi credentials