Connecting to AWS IoT Core over WebSockets

FrankAr
Fri, 19 Jan 2024 18:36:14 +0000
Developing Nodes

Hi there,
I am trying to connect to AWS IoT Core using node red. I am behind a corporate proxy with a lot of restrictions concerning port availability etc, and can therefore not use the node-red-contrib-aws-iot-hub as no mqtt connections are allowed. My end goal is to subscribe to a topic and receive value updates in node-red.

I have decided to write my own node-red node, however I am having problems with the proxy configuration. The node works just fine when I test it on a raspberry pi outside the corporate network, but when deployed in the network I get ECONNREFUSED error with errno -111. I tried multiple ways of setting up the proxy, but each approach ended up in the same error.

Does someone maybe have experience with deploying the AWS node behind a proxy? Or any suggestion on how I can establish a connection would be very helpful and appreciated.

8 posts - 5 participants