From cbdbc864159bef682c9d3cd6e29c86c02fec7696 Mon Sep 17 00:00:00 2001 From: anlicheng Date: Thu, 7 Sep 2023 11:07:03 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_host.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index 5ed291c..4e3dc0b 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -485,6 +485,8 @@ change_devices_status(HostId, NewStatus) when is_integer(HostId), is_integer(New handle_data(#{<<"device_uuid">> := DeviceUUID, <<"service_name">> := ServiceName, <<"at">> := Timestamp, <<"fields">> := FieldsList, <<"tags">> := Tags}, #state{uuid = UUID}) when is_binary(DeviceUUID), DeviceUUID /= <<>> -> + lager:debug("[iot_host] host: ~p, handle device data: ~p, fields: ~p, tags: ~p", [UUID, DeviceUUID, FieldsList, Tags]), + case iot_device:get_pid(DeviceUUID) of undefined -> ok;