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

Auto disable wifi and a few more tweaks #29

Merged
merged 10 commits into from
Dec 9, 2017
Merged

Conversation

zeraien
Copy link
Contributor

@zeraien zeraien commented Dec 9, 2017

  • Automatically disconnects wifi until an "admin" card is read in by the user. Default is to keep wifi on unless configured otherwise.
  • Add automatic restart setting, to lessen risk of memory leaks and crashes.
  • The wifi network created will have the same name as the "hostname", in case you have multiple units nearby
  • Also some minor tweaks to web interface.

@omersiar omersiar merged commit 9276ea6 into esprfid:master Dec 9, 2017
@omersiar
Copy link
Collaborator

omersiar commented Dec 9, 2017

Thank you. Nice job 👍

@zeraien
Copy link
Contributor Author

zeraien commented Dec 9, 2017

Thank you for starting the project :)

@omersiar
Copy link
Collaborator

omersiar commented Dec 9, 2017

  • Bug first time flashed missing deviceHostname [ INFO ] Configuring access point... Failed!

@zeraien
Copy link
Contributor Author

zeraien commented Dec 9, 2017 via email

@klasrocket
Copy link

Hi. Nice work!

Whats needed to actually turn off the rf chip and gain power savings is both

WiFi.disconnect(true); and
WiFi.forceSleepBegin();

as far as I understand, according to following discussions:
esp8266/Arduino#644
esp8266/Arduino#460
https://www.hackster.io/rayburne/esp8266-turn-off-wifi-reduce-current-big-time-1df8ae

But not sure it's easy to bring it back up again, so I simply just used a button physically connected to reset.

Would be nice to avoid wlan shutting down if its used though, will look into that.

@zeraien
Copy link
Contributor Author

zeraien commented Dec 27, 2017

The problem is that as it stands, the forceSleepBegin can not be reversed without powercycling the device, which is a problem if you do not wish to, or can not powercycle it at will. But as I understand it, it is a feature that should work so hopefully it will be fixed in future versions of the esp8266 code.

@omersiar
Copy link
Collaborator

I always wanted the rfid hardware to be interrupt driven. All this bit banging beyond me, maybe rfid hardware can trigger reset, but we need atmel like wake up function.

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

Successfully merging this pull request may close these issues.

3 participants