cyrils / web-bt1-monitor

Web application to read Renogy RS232 compatible BT-1 bluetooth adapter using Web Bluetooth API.
GNU General Public License v3.0
10 stars 5 forks source link

BT-2 Support #3

Closed matthewcobb closed 9 months ago

matthewcobb commented 9 months ago

Great project! I saw your python lib supported the BT-2 protocols. I am setting this up on a raspberry pi and would like to report my battery status to an Electron app. This web based API is a lot more convenient for that. Is there support for BT-2 here as well?

Many thanks!

cyrils commented 9 months ago

Apparently yes. Both BT-1 and BT-2 use same protocol, and this code will work seamlessly for charge controllers. But if you are trying to read smart battery then the registers and values are different. You have to look into BatteryClient.py.

matthewcobb commented 9 months ago

Thank you for the fast reply, I will test it out 🙏