02.05.2019, 06:59
You need to pass device id to mqtt.new:
Username is use-token-auth:
Use port 1883 to connect to broker.
See this for more info: https://cloud.ibm.com/docs/services/IoT?...arted#mqtt
Code:
client = mqtt.new(device_id)
Username is use-token-auth:
Code:
client:login_set('use-token-auth', password)
Use port 1883 to connect to broker.
See this for more info: https://cloud.ibm.com/docs/services/IoT?...arted#mqtt