fix
This commit is contained in:
parent
facded9d58
commit
cbdbc86415
@ -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})
|
handle_data(#{<<"device_uuid">> := DeviceUUID, <<"service_name">> := ServiceName, <<"at">> := Timestamp, <<"fields">> := FieldsList, <<"tags">> := Tags}, #state{uuid = UUID})
|
||||||
when is_binary(DeviceUUID), DeviceUUID /= <<>> ->
|
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
|
case iot_device:get_pid(DeviceUUID) of
|
||||||
undefined ->
|
undefined ->
|
||||||
ok;
|
ok;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user