Answered
How do I get access credentials for IoT hub?

Is there an example on how to get connection parameters from reading the environment variables? Preferrably Node.js.

Posted 5 months ago
Votes Newest

Answers


Found it! Documentation here.

vcap_services = process.env.VCAP_SERVICES

amqp_uri = vcap_services.p-rabbitmq[0].credentials.protocols.amqp.uri

mqtt_uri = vcap_services.p-rabbitmq[0].credentials.protocols.mqtt.uri

  
Posted 5 months ago
Edited 5 months ago
203 Views
1 Answers
5 months ago
2 days ago
Tags
Similar posts