mqtt,Could not connect: CONNECTION_REFUSED_NOT_AUTHORIZED
来源:互联网 发布:知乎网络小说推荐 编辑:程序博客网 时间:2024/06/05 07:13
mqtt IoT service,Could not connect: CONNECTION_REFUSED_NOT_AUTHORIZED
publish msg端:org,host,registered device type,registered device id,apikey,apitoken都必须一致才可以。
device端id格式:
String clientId = "d:" + org + ":" + "MqttUtil.DEVICE_TYPE" + ":" + id;
// app key
String username = "use-token-auth";(just only this,not any others)
// app auth token
String password = "JNyh&!x9i0z1*daDb&";(registered device token)
也就是说,registered device apikey是没用的,只用到apitoken。
subscribe msg端:org,REGISTERED device id,host,registered app apikey,registered app apitoken用于subscribe msg。
app端id格式:String clientId = "a:" + org + ":" + id;
0 0
- mqtt,Could not connect: CONNECTION_REFUSED_NOT_AUTHORIZED
- TNS:could not resolve the connect ident
- TNS:could not resolve the connect identifier
- QWSSocket::connectToLocalFile could not connect:: Connection refused
- could not resolve the connect identifier specified
- mplayer: could not connect to socket mplayer
- Corestone Could not connect res….
- Corestone:Could not connect res….
- ideviceinstaller Could not connect to lockdownd. Exiting.
- Could not connect to lockdownd. Exiting.
- SVN的could not connect to server
- Could not connect to lockdownd. Exiting.
- Could not connect to lockdownd. Exiting.
- Warning: Could not connect to Nexus.解决方案
- solr中 Could not connect to ZooKeeper
- 解决 dropdb: could not connect to database postgres: could not connect to server:
- javamail javax.mail.MessagingException: Could not connect to SMTP host:
- ORA-12154: TNS:could not resolve the connect identifier specified
- 公告:C币兑换平台系统停站维护公告
- android的SDK的新兼容包
- String index out of range: -1
- 社会媒体中的谣言分析框架(IEEE2011)
- 关于HashSet、TreeSet、LinkedHashSet的区别
- mqtt,Could not connect: CONNECTION_REFUSED_NOT_AUTHORIZED
- c++下halcon配置
- LeetCode[链表] - #21 Merge Two Sorted Lists
- linux下编译boost的多线程程序
- C++中的static关键字
- 算法导论第三版-课后习题-自解
- 文章标题
- 总结Android UI 自动化测试
- 字符串和编码