admin 管理员组文章数量: 894082
MQTT在线公共的MQTT服务器
一些测试过可以在国内使用的免费的MQTT服务器的host和ipport
地址 | TCP |
---|---|
broker-cn.emqx.io | 1883 |
mqtt.eclipseprojects.io | 1883 |
test.mosquitto.org | 1883 |
test.ranye-iot.net | 1883 |
测试使用的Json
{"你好":"我是发送的消息哦"}{"Name":"尼桑","Age":223,"Height":176.0,"Width":130.0,"Sex":false,"_scoreDic":{"数学":"123","英语":"23","语文":"3"},"_dateList":["2022-08-13T00:00:00+08:00","2022-08-13T22:15:57.5702248+08:00"],"child":{"ChildName":"GTR","ChlidAge":"12","strList":["chld1","chld2"]}}
class TestJsonItem{public string Name="尼桑";public int Age=223;public float Height=176;public float Width=130;public bool Sex=false;public Dictionary<string, string> _scoreDic=new Dictionary<string, string>();public List<DateTime> _dateList=new List<DateTime>();public TestJsonItemChild child=new TestJsonItemChild();}public class TestJsonItemChild{public string ChildName="GTR";public string ChlidAge="12";public List<string> strList=new List<string>();}
//接收消息void client_MqttMsgPublishReceived(object sender, MqttMsgPublishEventArgs e) {Debug.Log("Received: " + System.Text.Encoding.UTF8.GetString(e.Message) );}
//发送client.Publish(top1, System.Text.Encoding.UTF8.GetBytes("Sending from Unity3D!!!"), MqttMsgBase.QOS_LEVEL_EXACTLY_ONCE, true);
本文标签: MQTT在线公共的MQTT服务器
版权声明:本文标题:MQTT在线公共的MQTT服务器 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1688192123h190239.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论