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 7 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 7 months ago
Edited 7 months ago
262 Views
1 Answers
7 months ago
11 hours ago
Tags
Similar posts