OpenShock / Firmware

Espressif Firmware for OpenShock, Controlling shock collars via Reverse engineered proprietary Sub-1 GHz Protocols.
GNU Affero General Public License v3.0
31 stars 11 forks source link

Add optional (on by default) shocker Keep-Alive! #125

Closed nullstalgia closed 10 months ago

nullstalgia commented 10 months ago

Also some minor RFTransmitter tweaks alongside it, but this should work well!

It's on by default, but users can disable it with

-DOPENSHOCK_SHOCKER_KEEPALIVE_INTERVAL_MS=0

I think a Frontend toggle like we have for the Captive Portal would be better, but still!

nullstalgia commented 10 months ago

Added toggling the keep-alive task via Serial! But I added a utility function to parse the "bool" the user types in. Not sure if this is best in another file somewhere. Seems fine for now though.