如何通过tls连接mqtt

发布于 2024-03-30 14:15:19

通过demo,内的mqtt_demo(1);无法连接服务器。
-----------conn_type 1 ctx 0x20025744 mqtt_demo_socket_id 0x20025748
----------------sta ip: 192.168.2.170
----------------step1: init mqtt lib.
----------------step2: establishing TCP connection.

. Seeding the random number generator... ok
. Connecting to tcp... ok
. Setting up the SSL/TLS structure... ok
. Performing the SSL/TLS handshake... ok
----------------step3: establishing mqtt connection.
tls recv -30848 closed
----------------Error(-30848) on read packet!

查看更多

关注者
0
被浏览
491
1 个回答
isme
isme 认证专家 2024-04-01
冰镇大西瓜

用这个测试mqtt看看,mqtt.isme.fun

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览