cyrils / renogy-bt

Python library to read Renogy compatible BT-1 or BT-2 bluetooth modules
GNU General Public License v3.0
94 stars 39 forks source link

Error during running of example.py #10

Closed dshortmn closed 1 year ago

dshortmn commented 1 year ago

Traceback (most recent call last): File "c:\GitHub\renogy-bt1\example.py", line 25, in BTOneClient(config, on_data_received).connect() File "c:\GitHub\renogy-bt1\renogybt\BTOneClient.py", line 36, in connect self.manager = DeviceManager(adapter_name=self.config['device']['adapter'], mac_address=self.config['device']['mac_addr'], alias=self.config['device']['alias']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\GitHub\renogy-bt1\renogybt\BLE.py", line 9, in init super(). init(adapter_name, mac_address, alias) TypeError: object.init() takes exactly one argument (the instance to initialize)

cyrils commented 1 year ago

Hello, the gatt library used for BLE communication is not supported in Windows/Mac platform, please try in a Linux environment (ex: Raspberry Pi)