LabVIEW-Open-Source/LV-MQTT-Broker

Error 66 is being sent by client connect vi in labview

zombae98 opened this issue · 7 comments

Hi i am using MQTT to publish data onto systemlink cloud. I am using a esp32(publisher), raspberry pi(broker and susbsciber), mosquitto mqtt broker. I am successful in getting the data from the esp32 to the broker but i am having trouble configuring the raspberry pi in LabVIEW to get the data from the mosquitto as a subscriber. I keep on getting error 63 and error 66 when i try and connect to the broker. I am using the MQTT VI available on the VIPM. I have used localhost and the ip address as my TCP connect configuration to connect to the server, i am also passing the username and password as a cluster in the connect to server VI. I am also running LV 2021 CE and makerhub to connect and deploy my application.
rpi4
rpi1
rpi2
rpi3
you can refer to the NI forum Post where I have posted the issue https://forums.ni.com/t5/LabVIEW/MQTT-Labview/m-p/4288140#M1251469

Error 66 is a response that means "Socket has been closed by the peer". It can be the result of a protocol violation, failure to identify, incorrect connection flags, etc.

If you think this is not a normal response, can you share details about the issue? And if possible, with example code.

Error 66 is a response that means "Socket has been closed by the peer". It can be the result of a protocol violation, failure to identify, incorrect connection flags, etc.

If you think this is not a normal response, can you share details about the issue? And if possible, with example code.

I am using the default drop in simple connection VI

HI forgot to mention when i connect to my windows broker it works fine but gives out this error when i try and connect to the raspberry pi broker. Below is a snapshot of my code if it helps. I do enter my username and password but i have left that out
image
image
image

If you enter both username and password, are you also checking both flags?

image

If you enter both username and password, are you also checking both flags?

image

NO

If you enter both username and password, are you also checking both flags?

image
Its working now
Thanks for the help you have been awesome

Glad it worked out.