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

Connect to WiFi without scan #25

Open
shajek opened this issue Dec 15, 2017 · 3 comments
Open

Connect to WiFi without scan #25

shajek opened this issue Dec 15, 2017 · 3 comments

Comments

@shajek
Copy link
Contributor

shajek commented Dec 15, 2017

Hello,
is there any option to stop scanning (maybe only first time) and only connect to predefined Wifi ? I'm trying to make battery module with this library and this proces take too much time.

@PhracturedBlue
Copy link
Owner

No, but in ESP8266MQTTMesh::begin() there is a call to 'WiFi.disconnect()' If you remove that, I believe the node will automatically attempt to reconnect to the previous connection. If you are trying to use deepsleep it won't work though, because the async callback will notice the callback and push for a new scan. This dove-tails into your other question, which is that we need to add specific code to properly de-initialize and re-initialize when doing a deepsleep.

@shajek
Copy link
Contributor Author

shajek commented Feb 26, 2018

Hello, me again. I have another question wich is similiar to this thread. Is there some way to speed up booting ? Currently is there 11s cca to first message... 11s vs 9s of booting time to firt message is for me 12day in battery life
Thank you

@PhracturedBlue
Copy link
Owner

I don't have any great ideas, but if you profile your stratup times, perhaps we could find some fat to trim

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