97
Views
5
Comments
[MQTT Web Client] problems with pahoClient
Question
mqtt-web-client
Web icon
Forge asset by Barduino

Hello! 

I am using MQTTJS library. 

In my preparation, I'm setting a mqttClient and setting the host, port, clientId, password, and isSSL. Next, I am using a server action with pahoConnect and passing the mqttClient. I have no errors but when I run the app, I have a red alert message saying "pahoConnect is not defined". Anyone can help?

Cheers,
PCG 



Screen Shot 2018-11-12 at 2.59.57 PM.png
2020-08-26 14-54-58
Raghuram kamath

Did you Debug in the front end ? did you see any value in the Javascript ?

UserImage.jpg
Pedro Garcia

coder kamath wrote:

Did you Debug in the front end ? did you see any value in the Javascript ?

Problem solved! Thank you @Coder Kamath!  I had to drop a web block that was missing. After that several problems appeared but, I tackled all of them and the POC is working perfectly. Anyone working with mqtt and this library let me know because I can help! 


UserImage.jpg
Barduino

Pedro, Kamath,

I will gladly add you to the dev team, just make the request!

Cheers

UserImage.jpg
Pedro Garcia

Barduino wrote:

Pedro, Kamath,

I will gladly add you to the dev team, just make the request!

Cheers

I am glad to join! I am actually trying to do the same, but in mobile...but this time having more problems, that I did not solve yet... 

UserImage.jpg
Barduino

Pedro Garcia wrote:

Barduino wrote:

Pedro, Kamath,

I will gladly add you to the dev team, just make the request!

Cheers

I am glad to join! I am actually trying to do the same, but in mobile...but this time having more problems, that I did not solve yet... 


The Paho mqtt client should be the same. I can't remember if I made any changes between them. 

The mobile client t is much easier to implement because of the events. However now with P11 we have events for web also. 

Someone reported the on destroy was not working properly but I couldn't convince them to join the team.

Any way looking forward for this and appreciate your interest. I will add you to the mobile version also,just make the request. 

Cheers



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.