remove cache
This commit is contained in:
parent
7095fb83f0
commit
528b7fe8c8
@ -587,12 +587,13 @@ handle_data(#{<<"device_uuid">> := DeviceUUID, <<"service_name">> := ServiceName
|
||||
iot_device:change_status(DevicePid, ?DEVICE_ONLINE),
|
||||
|
||||
%% 时间同样精确到毫秒
|
||||
FormattedTimestamp = iot_util:format_timestamp(Timestamp),
|
||||
DeviceDataList = lists:map(fun({Field, Val}) ->
|
||||
#device_data{tags = NTags, field = Field, val = Val, timestamp = FormattedTimestamp}
|
||||
end, iot_device:serialize(FieldsList)),
|
||||
%FormattedTimestamp = iot_util:format_timestamp(Timestamp),
|
||||
%DeviceDataList = lists:map(fun({Field, Val}) ->
|
||||
% #device_data{tags = NTags, field = Field, val = Val, timestamp = FormattedTimestamp}
|
||||
% end, iot_device:serialize(FieldsList)),
|
||||
|
||||
iot_device:data(DevicePid, DeviceDataList);
|
||||
% iot_device:data(DevicePid, DeviceDataList);
|
||||
ok;
|
||||
false ->
|
||||
lager:warning("[iot_host] host uuid: ~p, device_uuid: ~p not activated, fields: ~p, tags: ~p", [UUID, DeviceUUID, FieldsList, Tags])
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user