Mar-05-2023, 08:35 PM
Here are the console message I'm getting depending of if the print statements are live of commented out...
Output:With comments….
Searching for = 'Cabin 560ah 100a'
=========== Found It ==============
Name = Cabin 560ah 100a
Device = a4:c1:38:f4:bd:25
RSSI = -55 dB
===================================
attempting to connect
connected a4:c1:38:f4:bd:25
calling bms-x03
{'rsp': ['wr']}
handleNotification-dd03
In cellinfo1...
13.55 60.33 560.0 503.67
[13.55, 60.33, 560.0, 503.67]
Leaving cellinfo1
calling bms-x04
{'rsp': ['wr']}
handleNotification-dd04
In cellvolts1...
3387 3387 3386 3391
[13.55, 60.33, 560.0, 503.67, 3387, 3387, 3386, 3391]
Leaving cellvolts1
[13.55, 60.33, 560.0, 503.67, 3387, 3387, 3386, 3391]
broker disconnected
Without Comments…
Searching for = 'Cabin 560ah 100a'
=========== Found It ==============
Name = Cabin 560ah 100a
Device = a4:c1:38:f4:bd:25
RSSI = -55 dB
===================================
attempting to connect
connected a4:c1:38:f4:bd:25
Traceback (most recent call last):
File "/home/pi/Scripts/bms-main/testcode.py", line 153, in <module>
gcellvolt1 = ginfo[4]
IndexError: list index out of range
broker disconnected