Lemon2311 / HomeServer.js

Dynamic Automation of home lights made with IoTFleet.js, in active development
0 stars 0 forks source link

Only one global button state variable #4

Closed Lemon2311 closed 6 months ago

Lemon2311 commented 6 months ago

Right now there is only one let buttonState declared globally which keeps track of the button state, so effectively only one button will work. There should be a workarround regarding variable scope or an array of states or such. Any way of solving this works.