chvolkmann / govee_btled

A Python wrapper for controlling a cheap Bluetooth RGB light bulb.
91 stars 14 forks source link

Add ping() function that needs to be sent at least every 2 seconds #6

Open jr3us opened 3 years ago

jr3us commented 3 years ago

This insert shouldn't do anything to any of your other code in this source, but will make things much easier to send a keep aIive packet to the bulbs. The timing for 2 seconds will have to be controlled by the program using this library. I have no idea why line 132 is getting updated. that is odd. Looks like github maybe added a new line to the end of the line to it per the explanation of the change below.

MoldyGoon commented 2 years ago

Even after implementing the ping function with threading, the connection keeps dropping out? Any idea as to why? I've already tried to decrease the time between pings but that doesn't work.

jr3us commented 2 years ago

I made additional changes on top of the above on my own version, and is working much better and allows setup for more than one bulb. It is at https://github.com/mqttblebulb/mqttblebulb

Regards

MoldyGoon commented 2 years ago

I made additional changes on top of the above on my own version, and is working much better and allows setup for more than one bulb. It is at https://github.com/mqttblebulb/mqttblebulb

Regards

This link is broken

jr3us commented 2 years ago

i edited the post above and corrected the link.