Open Ca-AD opened 4 years ago
Hi, @NoobSmall Could you paste the error logs after loading emqx_coap plugin
I had same problem, emqx and coap plugin version is 3.2.7, use docker image emqx/emqx:v3.2.7, deploy in kubernetes.
2020-01-15 13:45:52.947 [info] supervisor: {local,coap_server} started: [{pid,<0.1638.0>}, {id,coap_server_registry}, {mfargs,{coap_server_registry,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 2020-01-15 13:45:52.948 [info] supervisor: {local,coap_server} started: [{pid,<0.1639.0>}, {id,coap_channel_sup_sup}, {mfargs,{coap_channel_sup_sup,start_link,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] 2020-01-15 13:45:52.948 [info] application: gen_coap started_at: 'emqx@192.168.3.41' 2020-01-15 13:45:52.949 [info] supervisor: {local,emqx_coap_sup} started: [{pid,<0.1644.0>}, {id,emqx_coap_registry}, {mfargs,{emqx_coap_registry,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 2020-01-15 13:45:52.949 [debug] CoAP-PS-TOPICS: Create the coap_topic table 2020-01-15 13:45:52.949 [info] supervisor: {local,emqx_coap_sup} started: [{pid,<0.1645.0>}, {id,emqx_coap_ps_topics}, {mfargs,{emqx_coap_ps_topics,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 2020-01-15 13:45:52.950 [info] supervisor: {local,coap_server} started: [{pid,<0.1646.0>}, {id,coap_udp_socket}, {mfargs,{coap_udp_socket,start_link,[5683,<0.1637.0>]}}, {restart_type,transient}, {shutdown,5000}, {child_type,worker}] 2020-01-15 13:45:52.951 [info] supervisor: {local,coap_server} started: [{pid,<0.1647.0>}, {id,coap_dtls_socket}, {mfargs, {coap_dtls_listen,start_link, [5684, [{port,5684}, {verify,verify_none}, {keyfile,"/opt/emqx/etc/certs/tls.key"}, {certfile,"/opt/emqx/etc/certs/tls.crt"}, {ciphers, ["ECDHE-ECDSA-AES256-GCM-SHA384", "ECDHE-RSA-AES256-GCM-SHA384", "ECDHE-ECDSA-AES256-SHA384", "ECDHE-RSA-AES256-SHA384", "ECDHE-ECDSA-DES-CBC3-SHA", "ECDH-ECDSA-AES256-GCM-SHA384", "ECDH-RSA-AES256-GCM-SHA384", "ECDH-ECDSA-AES256-SHA384", "ECDH-RSA-AES256-SHA384", "DHE-DSS-AES256-GCM-SHA384", "DHE-DSS-AES256-SHA256","AES256-GCM-SHA384", "AES256-SHA256","ECDHE-ECDSA-AES128-GCM-SHA256", "ECDHE-RSA-AES128-GCM-SHA256", "ECDHE-ECDSA-AES128-SHA256", "ECDHE-RSA-AES128-SHA256", "ECDH-ECDSA-AES128-GCM-SHA256", "ECDH-RSA-AES128-GCM-SHA256", "ECDH-ECDSA-AES128-SHA256", "ECDH-RSA-AES128-SHA256", "DHE-DSS-AES128-GCM-SHA256", "DHE-DSS-AES128-SHA256","AES128-GCM-SHA256", "AES128-SHA256","ECDHE-ECDSA-AES256-SHA", "ECDHE-RSA-AES256-SHA","DHE-DSS-AES256-SHA", "ECDH-ECDSA-AES256-SHA","ECDH-RSA-AES256-SHA", "AES256-SHA","ECDHE-ECDSA-AES128-SHA", "ECDHE-RSA-AES128-SHA","DHE-DSS-AES128-SHA", "ECDH-ECDSA-AES128-SHA","ECDH-RSA-AES128-SHA", "AES128-SHA"]}]]}}, {restart_type,transient}, {shutdown,5000}, {child_type,worker}] 2020-01-15 13:45:52.956 [info] application: emqx_coap started_at: 'emqx@192.168.3.41' 2020-01-15 13:45:52.956 [info] [Plugins] Started plugins: [gen_coap,emqx_coap] 2020-01-15 13:45:52.956 [info] [Plugins] Load plugin emqx_coap successfully
We use coap-client to subscribe Topic, use version 2.3.11 is OK , but 3.2.7 failed. By the way, use mqtt is fine.
2020-01-16 03:29:59.210 [info] supervisor: {<0.30323.1>,coap_channel_sup} started: [{pid,<0.30324.1>}, {id,coap_responder_sup}, {mfargs,{coap_responder_sup,start_link,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] 2020-01-16 03:29:59.212 [info] supervisor: {<0.30323.1>,coap_channel_sup} started: [{pid,<0.30325.1>}, {id,coap_channel}, {mfargs,{coap_channel,start_link, [<0.30323.1>,<0.1646.0>, {{192,168,2,207},36711}, <0.30324.1>]}}, {restart_type,transient}, {shutdown,5000}, {child_type,worker}] 2020-01-16 03:29:59.212 [info] supervisor: {<0.1639.0>,coap_channel_sup_sup} started: [{pid,<0.30323.1>}, {id,{{192,168,2,207},36711}}, {mfargs, {coap_channel_sup,start_link, [<0.1646.0>,{{192,168,2,207},36711}]}}, {restart_type,temporary}, {shutdown,infinity}, {child_type,supervisor}] 2020-01-16 03:29:59.213 [info] supervisor: {<0.30324.1>,coap_responder_sup} started: [{pid,<0.30326.1>}, {id,{get,[<<"mqtt">>,<<"device/860000111100001/down">>], [<<"c=860000111100001">>,<<"u=860000111100001">>, <<"p=test">>]}}, {mfargs,{coap_responder,start_link, [<0.30325.1>, [<<"mqtt">>, <<"device/860000111100001/down">>]]}}, {restart_type,temporary}, {shutdown,5000}, {child_type,worker}] 2020-01-16 03:29:59.214 [debug] CoAP-RES: coap_get() Path=[<<"device/860000111100001/down">>], Query=[<<"c=860000111100001">>, <<"u=860000111100001">>, <<"p=test">>]
2020-01-16 03:29:59.214 [debug] CoAP-MQTT: try to start adapter ClientId=<<"860000111100001">>, Username=<<"860000111100001">>, Password=<<"test">>, Channel={{192, 168, 2, 207}, 36711} 2020-01-16 03:29:59.215 [debug] [Protocol] RECV CONNECT(Q0, R0, D0, ClientId=860000111100001, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=900, Username=860000111100001, Password=**) 2020-01-16 03:29:59.233 [debug] <<"860000111100001">> [Protocol] SEND CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0) 2020-01-16 03:29:59.233 [info] event=client_process_not_found target="{'emqx@192.168.3.44',13}" action=spawning_client 2020-01-16 03:29:59.234 [debug] <<"860000111100001">> CoAP-MQTT: Keepalive at the interval of 675 2020-01-16 03:29:59.234 [debug] CoAP-RES: observe Topic=<<"device/860000111100001/down">>, Ack=true 2020-01-16 03:29:59.234 [debug] message=start_client event=starting_client_server target="{'emqx@192.168.3.44', 13}" 2020-01-16 03:29:59.235 [debug] event=starting_new_client target="{'emqx@192.168.3.44',13}" 2020-01-16 03:29:59.235 [debug] <<"860000111100001">> CoAP-Timer: emqx_coap_timer:start_timer 675 2020-01-16 03:29:59.235 [info] event=initializing_client driver=tcp node="emqx@192.168.3.44" port=5369 2020-01-16 03:29:59.236 [debug] <<"860000111100001">> CoAP-MQTT: subscribe Topic=<<"device/860000111100001/down">> 2020-01-16 03:29:59.236 [debug] <<"860000111100001">> [Protocol] RECV SUBSCRIBE(Q1, R0, D0, PacketId=1, TopicFilters=[{<<"device/860000111100001/down">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}]) 2020-01-16 03:29:59.240 [debug] event=connect_to_remote_server peer="emqx@192.168.3.44" socket="#Port<0.18452>" result=success 2020-01-16 03:29:59.241 [debug] event=authentication_connection_succeeded socket="#Port<0.18452>" 2020-01-16 03:29:59.244 [debug] event=connection_authenticated socket="#Port<0.18452>" 2020-01-16 03:29:59.245 [debug] event=constructing_cast_term driver=tcp socket="#Port<0.18452>" cast="[{cast,emqx_broker,dispatch,[<<"$SYS/brokers/+/clients/+/connected">>,{delivery,<0.30327.1>,{message,<<0,5,156,57,112,145,231,127,47,70,1,0,118,119,0,0>>,1,emqx_mod_presence,#{dup => false,sys => true},#{allow_publish => true},<"$SYS/brokers/emqx@192.168.3.41/clients/860000111100001/connected">,<<"{\"clean_start\":true,\"clientid\":\"860000111100001\",\"connack\":0,\"ipaddress\":\"192.168.2.207\",\"keepalive\":900,\"proto_name\":\"MQTT\",\"proto_ver\":4,\"ts\":1579145399232,\"username\":\"860000111100001\"}">>,{1579,145399,232556}}}]}]" 2020-01-16 03:29:59.246 [debug] event=send_data_succeeded socket="#Port<0.18452>" 2020-01-16 03:29:59.247 [debug] message=cast event=transmission_succeeded driver=tcp socket="#Port<0.18452>" 2020-01-16 03:30:03.449 [info] event=client_connection_received driver=tcp socket="#Port<0.9>" action=starting_acceptor 2020-01-16 03:30:03.450 [debug] event=starting_new_acceptor peer="192.168.3.44:60103" 2020-01-16 03:30:03.451 [info] event=start driver=tcp peer="192.168.3.44:60103" 2020-01-16 03:30:03.451 [debug] event=acquiring_socket_ownership driver=tcp socket="#Port<0.18454>" peer=""192.168.3.44:60103"" inet_opts: {ok,[{buffer,1048576},{recbuf,2097152},{sndbuf,2097152}]} 2020-01-16 03:30:03.452 [debug] event=send_data_succeeded socket="#Port<0.18454>" 2020-01-16 03:30:03.453 [debug] event=transmission_succeeded socket="#Port<0.18454>" peer="192.168.3.44:60103" 2020-01-16 03:30:03.454 [debug] event=cast_received driver=tcp socket="#Port<0.18454>" peer="192.168.3.44:60103" module=emqx_broker function=dispatch args="[<<"device/860000111100001/down">>,{delivery,<41623.19204.1>,{message,<<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,135>>,1,<<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,#{dup => false,retain => false},#{allow_publish => true,peername => {{10,233,77,44},60001},proto_ver => 4,username => <<"ssssss-ssss-ss-sssssss">>},<<"device/860000111100001/down">>,<<"{\"Blue_LED\":\"0\"}">>,{1579,145403,443925}}}]" 2020-01-16 03:30:03.461 [debug] <<"860000111100001">> CoAP-MQTT: deliver message from broker Topic=<<"device/860000111100001/down">>, Payload=<<"{\"Blue_LED\":\"0\"}">> 2020-01-16 03:30:03.462 [info] <<"860000111100001">> [Protocol] Shutdown for {function_clause, [{emqx_coap_mqtt_adapter,proto_deliver_ack, [{message, <<0,5,156,57,112,210,42,211,160,222,1,0, 75,4,0,135>>, 1, <<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username =>
<<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}},
{pstate,undefined,
#Fun<emqx_coap_mqtt_adapter.0.68620936>,
{{0,0,0,0},5683},
{{192,168,2,207},36711},
nossl,4,<<"MQTT">>,
<<"860000111100001">>,false,<0.30327.1>,
undefined,undefined,
<<"860000111100001">>,<0.30329.1>,true,
#{},undefined,undefined,900,false,
#{msg => 0,pkt => 2},
#{msg => 0,pkt => 1},
true,
{1579,145399,216417},
#{from_client => 0,to_client => 0},
undefined,
#{anonymous => false,
auth_result => success,
client_id => <<"860000111100001">>,
is_superuser => false,
mountpoint => undefined,
peername => {{192,168,2,207},36711},
sockname => {{0,0,0,0},5683},
username => <<"860000111100001">>,
ws_cookie => undefined,
zone => undefined},
undefined}],
[{file,
"/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl"},
{line,284}]},
{emqx_coap_mqtt_adapter,deliver,3,
[{file,
"/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl"},
{line,309}]},
{emqx_coap_mqtt_adapter,deliver,3,
[{file,
"/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl"},
{line,303}]},
{emqx_coap_mqtt_adapter,handle_info,2,
[{file,
"/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl"},
{line,184}]},
{gen_server,try_dispatch,4,
[{file,"gen_server.erl"},{line,637}]},
{gen_server,handle_msg,6,
[{file,"gen_server.erl"},{line,711}]},
{proc_lib,wake_up,3,
[{file,"proc_lib.erl"},{line,259}]}]}
2020-01-16 03:30:03.465 [info] event=client_process_not_found target="{'emqx@192.168.3.44',4}" action=spawning_client 2020-01-16 03:30:03.465 [debug] message=start_client event=starting_client_server target="{'emqx@192.168.3.44', 4}" 2020-01-16 03:30:03.466 [debug] event=starting_new_client target="{'emqx@192.168.3.44',4}" 2020-01-16 03:30:03.466 [info] event=initializing_client driver=tcp node="emqx@192.168.3.44" port=5369 2020-01-16 03:30:03.465 [error] <<"860000111100001">> Generic server {<<"860000111100001">>,<<"860000111100001">>,<<"test">>} terminating Last message in was {deliver, [{publish,1, {message, <<0,5,156,57,112,210,42,211,160,222,1,0,75, 4,0,135>>, 1, <<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username =>
<<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}}}]}
** When Server state == {state, {pstate,undefined,
{{0,0,0,0},5683},
{{192,168,2,207},36711},
nossl,4,<<"MQTT">>,<<"860000111100001">>,
false,<0.30327.1>,undefined,undefined,
<<"860000111100001">>,<0.30329.1>,true,#{},
undefined,undefined,900,false,
#{msg => 0,pkt => 2},
#{msg => 0,pkt => 1},
true,
{1579,145399,216417},
#{from_client => 0,to_client => 0},
undefined,
#{anonymous => false,auth_result => success,
client_id => <<"860000111100001">>,
is_superuser => false,
mountpoint => undefined,
peername => {{192,168,2,207},36711},
sockname => {{0,0,0,0},5683},
username => <<"860000111100001">>,
ws_cookie => undefined,zone => undefined},
undefined},
{{192,168,2,207},36711},
{timer_state,675,true,
#Ref<0.4235817431.2344615937.254943>,
{keepalive,check}},
[{<<"device/860000111100001/down">>,
{false,<0.30326.1>}}],
false}
Reason for termination == {function_clause, [{emqx_coap_mqtt_adapter,proto_deliver_ack, [{message, <<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,135>>, 1, <<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,username => <<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}},
{pstate,undefined,#Fun<emqx_coap_mqtt_adapter.0.68620936>,
{{0,0,0,0},5683},
{{192,168,2,207},36711},
nossl,4,<<"MQTT">>,<<"860000111100001">>,false,<0.30327.1>,
undefined,undefined,<<"860000111100001">>,<0.30329.1>,true,
#{},undefined,undefined,900,false,
#{msg => 0,pkt => 2},
#{msg => 0,pkt => 1},
true,
{1579,145399,216417},
#{from_client => 0,to_client => 0},
undefined,
#{anonymous => false,auth_result => success,
client_id => <<"860000111100001">>,is_superuser => false,
mountpoint => undefined,
peername => {{192,168,2,207},36711},
sockname => {{0,0,0,0},5683},
username => <<"860000111100001">>,ws_cookie => undefined,
zone => undefined},
undefined}],
[{file,
"/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl"},
{line,284}]},
{emqx_coap_mqtt_adapter,deliver,3,
[{file,
"/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl"},
{line,309}]},
{emqx_coap_mqtt_adapter,deliver,3,
[{file,
"/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl"},
{line,303}]},
{emqx_coap_mqtt_adapter,handle_info,2,
[{file,
"/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl"},
{line,184}]},
{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,637}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,711}]},
{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,259}]}]}
2020-01-16 03:30:03.470 [debug] event=connect_to_remote_server peer="emqx@192.168.3.44" socket="#Port<0.18455>" result=success 2020-01-16 03:30:03.471 [debug] event=authentication_connection_succeeded socket="#Port<0.18455>" 2020-01-16 03:30:03.472 [debug] event=connection_authenticated socket="#Port<0.18455>" 2020-01-16 03:30:03.473 [debug] event=constructing_cast_term driver=tcp socket="#Port<0.18455>" cast="[{cast,emqx_broker,dispatch,[<<"$SYS/brokers/+/clients/+/disconnected">>,{delivery,<0.30327.1>,{message,<<0,5,156,57,112,210,125,121,47,70,1,0,118,119,0,1>>,1,emqx_mod_presence,#{dup => false,sys => true},#{allow_publish => true},<"$SYS/brokers/emqx@192.168.3.41/clients/860000111100001/disconnected">,<<"{\"clientid\":\"860000111100001\",\"username\":\"860000111100001\",\"reason\":\"function_clause\",\"ts\":1579145403464}">>,{1579,145403,465083}}}]}]" 2020-01-16 03:30:03.473 [debug] event=send_data_succeeded socket="#Port<0.18455>" 2020-01-16 03:30:03.474 [debug] message=cast event=transmission_succeeded driver=tcp socket="#Port<0.18455>" 2020-01-16 03:30:03.469 [error] <<"860000111100001">> crasher: initial call: emqx_coap_mqtt_adapter:init/1 pid: <0.30327.1> registered_name: [] exception error: no function clause matching emqx_coap_mqtt_adapter:proto_deliver_ack({message, <<0,5,156,57, 112,210,42, 211,160,222,1, 0,75,4,0,135>>, 1, <<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
retain =>
false},
#{allow_publish =>
true,
peername =>
{{10,233,77,
44},
60001},
proto_ver =>
4,
username =>
<<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,
443925}},
{pstate,
undefined,
#Fun<emqx_coap_mqtt_adapter.0.68620936>,
{{0,0,0,0},
5683},
{{192,168,2,
207},
36711},
nossl,4,
<<"MQTT">>,
<<"860000111100001">>,
false,
<0.30327.1>,
undefined,
undefined,
<<"860000111100001">>,
<0.30329.1>,
true,#{},
undefined,
undefined,900,
false,
#{msg => 0,
pkt => 2},
#{msg => 0,
pkt => 1},
true,
{1579,145399,
216417},
#{from_client =>
0,
to_client =>
0},
undefined,
#{anonymous =>
false,
auth_result =>
success,
client_id =>
<<"860000111100001">>,
is_superuser =>
false,
mountpoint =>
undefined,
peername =>
{{192,168,2,
207},
36711},
sockname =>
{{0,0,0,0},
5683},
username =>
<<"860000111100001">>,
ws_cookie =>
undefined,
zone =>
undefined},
undefined}) (/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl, line 284)
in function emqx_coap_mqtt_adapter:deliver/3 (/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl, line 309)
in call from emqx_coap_mqtt_adapter:deliver/3 (/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl, line 303)
in call from emqx_coap_mqtt_adapter:handle_info/2 (/emqx_rel/_checkouts/emqx_coap/src/emqx_coap_mqtt_adapter.erl, line 184)
in call from gen_server:try_dispatch/4 (gen_server.erl, line 637)
in call from gen_server:handle_msg/6 (gen_server.erl, line 711)
ancestors: [<0.30326.1>,<0.30324.1>,<0.30323.1>,<0.1639.0>,coap_server,
<0.1636.0>]
message_queue_len: 7
messages: [{deliver,
{publish,1,
{message,
<<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,
135>>,
1,
<<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{dup => true,retain => false},
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username => <<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}}}},
{deliver,
{publish,1,
{message,
<<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,
135>>,
1,
<<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{dup => true,retain => false},
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username => <<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}}}},
{deliver,
{publish,1,
{message,
<<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,
135>>,
1,
<<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{dup => true,retain => false},
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username => <<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}}}},
{deliver,
{publish,1,
{message,
<<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,
135>>,
1,
<<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{dup => true,retain => false},
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username => <<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}}}},
{deliver,
{publish,1,
{message,
<<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,
135>>,
1,
<<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{dup => true,retain => false},
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username => <<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}}}},
{deliver,
{publish,1,
{message,
<<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,
135>>,
1,
<<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{dup => true,retain => false},
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username => <<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}}}},
{deliver,
{publish,1,
{message,
<<0,5,156,57,112,210,42,211,160,222,1,0,75,4,0,
135>>,
1,
<<"ssssss-ssss-ss-sssssss:cce74aff9c3b4eaa8de4e84d7a75961b">>,
#{dup => true,retain => false},
#{allow_publish => true,
peername => {{10,233,77,44},60001},
proto_ver => 4,
username => <<"ssssss-ssss-ss-sssssss">>},
<<"device/860000111100001/down">>,
<<"{\"Blue_LED\":\"0\"}">>,
{1579,145403,443925}}}}]
links: [<0.30329.1>]
dictionary: [{rand_seed,{#{bits => 58,jump => #Fun<rand.8.10897371>,
next => #Fun<rand.5.10897371>,type => exrop,
uniform => #Fun<rand.6.10897371>,
uniform_n => #Fun<rand.7.10897371>,
weak_low_bits => 1},
[255058004932590899|35600245591523756]}},
{'$logger_metadata$',#{client_id => <<"860000111100001">>}},
{guid,{1579145403465081,51977711023735,1}}]
trap_exit: false
status: running
heap_size: 6772
stack_size: 27
reductions: 111632
neighbours:
Thanks for your feedback, please use version 4.0.2
安装完成最新版的EMQ 后,在 管理 里边打开Coap插件 后不能正常使用Coap协议通信, 有朋友用的旧版本EMQ ,同样的方法打开coap插件后 可以正常通信,这是为什么呢??