arduino - Failure occurs when trying to connect my registered device to the IoT Foundation on BlueMix -


i can communicate iot in quickstart, after modify code include specific credentials registered device, "unsuccessful connection". have been using online recipes , tutorials connecting iot device bluemix.

i can past first part of recipe , communicate iot foundation in bluemix using quickstart connection, part works me. encounter error , connection fails when try connection registered device.

trying connect arduino device, followed tutorial: http://www.ibm.com/developerworks/cloud/library/cl-bluemix-arduino-iot1/index.html

please let me know if have suggestion should check determine why connection fails.

when connecting quickstart internet of things foundation there no authentication required. client must use valid client id , access permitted topic space.

when connecting registered device, or api key, authentication required. important use ssl protect password in case. quickstart, client id must correct , reflect registered device being connected. client id must following format:

d:org_id:device_type:device_id

where

  • org_id organization id provided when signed , displayed when log https://internetofthings.ibmcloud.com or seen in bluemix iotf service credentials (as provided in vcap_services properties).
  • device_type type of device specified when registering device.
  • device_id id of device specified when registering device.

the username must use-token-auth , password must provided after device registered. please check these details correct in sketch using.

for more information please see mqtt connectivity devices. if still have problems, please supply organization id, device type, , device id can check details. please do not supply device password intended kept secret.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -