scottbez1 / splitflap

DIY split-flap display
https://scottbez1.github.io/splitflap
Other
3.18k stars 263 forks source link

ESP32 MQTT/WiFi support #125

Closed johnboiles closed 3 years ago

johnboiles commented 3 years ago

This PR adds support in the ESP32 firmware for connecting to an MQTT server over WiFi for remote controlling the splitflap.

This allows you to do cool things like automate your splitflap using Home Assistant.

johnboiles commented 3 years ago

Also just to share, here's the current iteration of my split flap: 060680DB-0308-40D1-8ECF-D00CBC631068 08C7AE68-2ABE-48FF-AE93-EF04B61257C9

scottbez1 commented 3 years ago

I merged in the latest master and resolved a few conflicts. I also simplified the splitflap_task API so there's now just a single showString() method which is used both by the mqtt_task and by splitflap_task itself (but eventually that usage will get pulled out to a separate serial task so this is progress toward that goal). I also fixed a bug with my recent Actions changes, where it was trying to upload to S3 even on forks where the credentials aren't available :facepalm: . Tested this with a local MQTT server - works great! My T-Displays are currently tied up in other projects so I didn't validate that the display still works, but there's no reason to believe it wouldn't.