binsentsu / am43-ctrl

Node Util for controlling an AM43 Blinds Drive Cover, either over MQTT or via a HTTP API
44 stars 25 forks source link

Failed to add/connect device #14

Closed reesion closed 4 years ago

reesion commented 4 years ago

Hi,

I am getting error when trying to connect the device to MQTT broker.

reesion@rsha01:~$ sudo am43ctrl 02:0d:bf:12:8c:53 --url mqtt://192.168.1.142

am43 scanning for 1 device(s) [ '020dbf128c53' ] +0ms am43 discovered 020dbf128c53 +190ms am43* all expected devices connected, stopping scan +1ms processLeAdvertisingReport: Caught illegal packet (buffer overflow): TypeError: this.log is not a function

anhtuanng98 commented 4 years ago

Do you add port for mqtt broker, username and password of mqtt? Default port is 1883. For example: sudo am43ctrl 02:0d:bf:12:8c:53 --url mqtt://192.168.1.142:1883 -u mqttusername -p mqttpassword

reesion commented 4 years ago

Do you add port for mqtt broker, username and password of mqtt? Default port is 1883. For example: sudo am43ctrl 02:0d:bf:12:8c:53 --url mqtt://192.168.1.142:1883 -u mqttusername -p mqttpassword

Yes, i've tried it with port as well and it gave me the same error

reesion@rsha01:~$ sudo am43ctrl 02:0d:bf:12:8c:53 --url mqtt://192.168.1.142:1883

am43 scanning for 1 device(s) [ '020dbf128c53' ] +0ms am43 discovered 020dbf128c53 +204ms am43* all expected devices connected, stopping scan +0ms processLeAdvertisingReport: Caught illegal packet (buffer overflow): TypeError: this.log is not a function

anhtuanng98 commented 4 years ago

Do you add port for mqtt broker, username and password of mqtt? Default port is 1883. For example:

sudo am43ctrl 02:0d:bf:12:8c:53 --url mqtt://192.168.1.142:1883 -u mqttusername -p mqttpassword

Yes, i've tried it with port as well and it gave me the same error

reesion@rsha01:~$ sudo am43ctrl 02:0d:bf:12:8c:53 --url mqtt://192.168.1.142:1883

am43* scanning for 1 device(s) [ '020dbf128c53' ] +0ms

am43* discovered 020dbf128c53 +204ms

am43* all expected devices connected, stopping scan +0ms

processLeAdvertisingReport: Caught illegal packet (buffer overflow): TypeError: this.log is not a function

How about user and password of mqtt?

reesion commented 4 years ago

How about user and password of mqtt?

Tried with username and password and getting the same error.

sudo am43ctrl 02:0d:bf:12:8c:53 --url mqtt://192.168.1.142:1883 -u mqtt -p mqtt

am43 scanning for 1 device(s) [ '020dbf128c53' ] +0ms am43 discovered 020dbf128c53 +251ms am43* all expected devices connected, stopping scan +1ms processLeAdvertisingReport: Caught illegal packet (buffer overflow): TypeError: this.log is not a function

reesion commented 4 years ago

I've managed to fix it by reinstalling the package. Thanks for your help anyway

anhtuanng98 commented 4 years ago

I've managed to fix it by reinstalling the package. Thanks for your help anyway

Please close it