jesserockz / wizmote-esphome

Apache License 2.0
66 stars 30 forks source link

Simplify handling of multiple WizMotes #16

Open kueblc opened 1 year ago

kueblc commented 1 year ago

Instead of using a fixed array with a linear lookup and manual shuffling of data, I'm tracking the last seen sequence number using standard map.

This simplifies the application code quite a bit. Additionally there is no restriction on the number of WizMotes.

This branch is built on top of my other PR #15, so if this PR is acceptable you can close the other.

Tested and confirmed working with an ESP32.