MQTT setting problem

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
alex_tpc
Posts: 11
Joined: 21 Apr 2022 12:40

MQTT setting problem

Post by alex_tpc »

Hello everyone,

I use MQTT app in the z-wave and try to connect with Azure iot hub but, in the username setting, it has a limited characters. Under the Azure, it requires to have more than the limited characters in the z-wave app. Can I remove the limited setting? Or others solutions.

Thanks!
aivs
Posts: 68
Joined: 04 Mar 2011 15:26

Re: MQTT setting problem

Post by aivs »

Hi, please attach screenshot. I don't see any characters limited in MQTTClient app. I can connect to HiveMQ mqtt brocker without problem.
alex_tpc
Posts: 11
Joined: 21 Apr 2022 12:40

Re: MQTT setting problem

Post by alex_tpc »

It will display like this in the attachment. and the following is the error code in the log
[2022-10-28 10:29:07.281] [core] Error: removeListener only takes instances of Function
at EventEmitter.off [as removeListener] (automation/lib/eventemitter2.js:419:19)
at _.extend.off (automation/classes/DevicesCollection.js:217:38)
at MQTTClient.stop (automation/modules/MQTTClient/index.js:185:26)
at AutomationController.stopInstance (automation/classes/AutomationController.js:975:12)
at AutomationController.reconfigureInstance (automation/classes/AutomationController.js:1016:9)
at ZAutomationAPIWebRequest._.extend.reconfigureInstanceFunc (automation/ZAutomationAPIProvider.js:1399:31)
at ZAutomationAPIWebRequest.handlerFunc (automation/ZAutomationAPIProvider.js:4006:30)
at ZAutomationAPIWebRequest.ZAutomationWebRequest.handleRequest (automation/WebserverRequestRouter.js:253:35)
at automation/WebserverRequestRouter.js:32:29
at WebServer.ws.execute (automation/Webserver.js:127:9)
[2022-10-28 10:29:07.293] [E] [HTTP] Callback execution error: TypeError: Cannot read property 'prototype' of undefined
at MQTTClient.init (automation/modules/MQTTClient/index.js:33:19)
at AutomationController.reconfigureInstance (automation/classes/AutomationController.js:1043:23)
at ZAutomationAPIWebRequest._.extend.reconfigureInstanceFunc (automation/ZAutomationAPIProvider.js:1399:31)
at ZAutomationAPIWebRequest.handlerFunc (automation/ZAutomationAPIProvider.js:4006:30)
at ZAutomationAPIWebRequest.ZAutomationWebRequest.handleRequest (automation/WebserverRequestRouter.js:253:35)
at automation/WebserverRequestRouter.js:32:29
at WebServer.ws.execute (automation/Webserver.js:127:9)
at WebServer.document_root (automation/Webserver.js:26:34)
Attachments
螢幕擷取畫面 2022-10-28 103508.png
螢幕擷取畫面 2022-10-28 103508.png (35.48 KiB) Viewed 3197 times
User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

Re: MQTT setting problem

Post by PoltoS »

Looks like the MQTT module is not loaded. Please run Z-Way from the terminal and show the loading of modules. It should complain.

Please also show the Z-Way version and "uname -a" and "lsb_release -a"
alex_tpc
Posts: 11
Joined: 21 Apr 2022 12:40

Re: MQTT setting problem

Post by alex_tpc »

How to check it?
Attachments
螢幕擷取畫面 2022-10-31 102822.png
螢幕擷取畫面 2022-10-31 102822.png (34.94 KiB) Viewed 3153 times
alex_tpc
Posts: 11
Joined: 21 Apr 2022 12:40

Re: MQTT setting problem

Post by alex_tpc »

this one is error too
Attachments
螢幕擷取畫面 2022-10-31 102822.png
螢幕擷取畫面 2022-10-31 102822.png (34.94 KiB) Viewed 3152 times
Post Reply