mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-11-29 18:57:41 +08:00
fix: publish topic error
This commit is contained in:
parent
544eed54b1
commit
b3ab5fcc4a
@ -6,6 +6,7 @@
|
||||
* add device log ([f3b173c](https://github.com/dgiot/dgiot/commit/f3b173c3f146e1ddf21038b5026dfd08ae93c95f))
|
||||
* channel_log ([1e37058](https://github.com/dgiot/dgiot/commit/1e3705876eb905cab215085e7341e050ce822170))
|
||||
* fix mqtt trace bug ([1a53ebe](https://github.com/dgiot/dgiot/commit/1a53ebec4ecf68ad2e19c14d43ed47fbcbed1754))
|
||||
* post trace failed ([544eed5](https://github.com/dgiot/dgiot/commit/544eed54b1798fe799f885f5af99a06582fa115b))
|
||||
* task_worker bug ([0396163](https://github.com/dgiot/dgiot/commit/039616312126d24e36b03cf339e0e6ffb6f3aa13))
|
||||
|
||||
|
||||
|
@ -95,7 +95,7 @@ check_trace(From, Topic,Payload) ->
|
||||
case get_trace({clientid, From}) of
|
||||
true ->
|
||||
BinClientId = dgiot_utils:to_binary(From),
|
||||
dgiot_mqtt:publish(self(), <<"logger_trace/trace/", BinClientId/binary, Topic/binary>>, Payload);
|
||||
dgiot_mqtt:publish(self(), <<"logger_trace/trace/", BinClientId/binary,"/", Topic/binary>>, Payload);
|
||||
false ->
|
||||
case get_trace({topic, Topic}) of
|
||||
true ->
|
||||
|
Loading…
Reference in New Issue
Block a user