Google IoT with Node-red using JWT

44 views
Skip to first unread message

Hassan Haroon

unread,
Feb 26, 2020, 8:25:34 AM2/26/20
to Google App Engine
Hey Everyone,

I am using Node-Red and trying to connect to MQTT Broker at mqtt.googleapis.com:8883 using JWT

I am able to connect via python script but i am not able to connect using Node-Red..
The problem is i am using a cryptochip from microchip to generate  JWT and by using this JWT i am able to connect using Python script but not using Node-red.

Now what i am doing for Node-Red is, i am generating the JWT using the same python script and saving it in environment variable. And then i am putting this JWT(Environemnt variable) in Node-Red in Password field, but no luck so far...

I am not getting where the problem is.. Is this problem lies because of the JWT or there is another problem ?

Thanks a lot!

George (Cloud Platform Support)

unread,
Feb 26, 2020, 10:35:30 AM2/26/20
to Google App Engine
Hello Hassan, 

Node-RED provides specific documentation on this issue on the "Connect to an MQTT Broker" page. You may benefit from guidance and examples provided on the "Publishing over the MQTT bridge" documentation page

This discussion group is oriented more towards general opinions, trends, and issues of general nature touching App Engine. For coding and programming architecture, as well as setting up connections to an MQTT broker, you may be better served in dedicated forums such as stackoverflow, where experienced programmers are within reach and ready to help. 

Hassan Haroon

unread,
Feb 26, 2020, 2:04:18 PM2/26/20
to Google App Engine
Hey George,

Thanks for your feedback. I have posted it on stackoverflow..
Reply all
Reply to author
Forward
0 new messages