Skip to main content
1-Visitor
October 16, 2019
Question

Issues while connecting azure iot hub and thingworx

  • October 16, 2019
  • 3 replies
  • 6873 views

I am following the resource guide

https://developer.thingworx.com/en/resources/guides/azure-iot-hub-connector-quickstart

to connect between azure iothub and thingworx.

I am using the setup as follow, I have connection server and the thingworx foundation install on the same machine.

I have edited the config file of connection for azure as well as thingworx foundation. I have added the appKey and thingworx host and port in "transport.websockets" section

 

transport.websockets {
// ThingWorx platform application key
app-key = "0d277e85-944d-4e85-8ec6-2c16a903c74e"

// One or more platforms can be specified here, comma separated
platforms = "ws://192.168.43.77:8080/Thingworx/WS"
}

But when I am running the connection server using the precompiled I am getting the error as shown in screenshot

twx-conn-server-error.png

 

Please let me know if running connection server and twx foundation on same machine is causing this issue.

Let me know if someone faced similar type of issue.

3 replies

Support
October 17, 2019

Hi @cgoma.

 

Please provide the azure-iot.conf file for further review.  You can mask any sensitive data.

 

Regards.

 

--Sharon

cgoma1-VisitorAuthor
1-Visitor
October 20, 2019

Hi @slangley 

Thanks for your reply.

Please find attached azure-iot.conf file for your reference.

19-Tanzanite
October 24, 2019

Hi @cgoma 

 

We are able to connect between TWX an Azure, but we are using TWX 8.5 and IoT hub connector 3.0.

 

Configuration method is different for IoT hub 2.0 & 3.0.  It will be helpful if you share cxserver log file also.

 

Regards,

VR

 

18-Opal
October 26, 2019

@cgoma You'll get the same error if the app key does not exist, double-check if it is correct.

 

/ Constantine

cgoma1-VisitorAuthor
1-Visitor
November 21, 2019

@Constantine 

 

I did not find any issue with the application key. I double checked it and I had used the multiple application key.

Support
October 30, 2019

Hi @cgoma.

 

Have you found a solution to your Azure IoT Hub connectivity issue?  If one of the previous responses helped you to resolve it, please mark the appropriate post as the Accepted Solution.  If you found a different solution, please feel free to post it in a new reply and mark that as the Accepted Solution.

 

Regards.

 

--Sharon

Support
November 8, 2019

Hi @cgoma.

 

Please lt us know if you have resolved your issue.  If so, please mark the appropriate reply as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon

cgoma1-VisitorAuthor
1-Visitor
November 21, 2019

This issue is not solved yet.