diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index a7fa6a4..2e2cf52 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -413,7 +413,7 @@ handle_event(cast, {handle, {ai_event, Event0}}, ?STATE_ACTIVATED, State = #stat #{<<"event_type">> := EventType, <<"params">> := Params = #{<<"device_uuid">> := DeviceUUID}} -> case iot_device:is_alive(DeviceUUID) of error -> - lager:notice("[iot_host] uuid: ~p, device_uuid: ~p is not alive, get ai_event: ~p", [UUID, EventText]), + lager:notice("[iot_host] uuid: ~p, device_uuid: ~p is not alive, get ai_event: ~p", [UUID, DeviceUUID, EventText]), ok; {ok, DevicePid} -> %% 保存数据到mysql