From e05a0a1247d557aaabedec71b5cfa540ec0d6943 Mon Sep 17 00:00:00 2001 From: anlicheng Date: Fri, 28 Jul 2023 13:54:27 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_host.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index add9f7a..9f5d333 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -263,7 +263,7 @@ handle_event(cast, {handle, {data, Data}}, session, State = #state{uuid = UUID, Points = lists:map(fun(Fields) -> influx_point:new(RouterUUID, NTags, Fields, Timestamp) end, FieldsList), Precision = influx_client:get_precision(Timestamp), - poolboy:transaction(influx_pool, fun(Pid) -> influx_client:write(Pid, <<"iot">>, <<"iot">>, Precision, Points) end); + poolboy:transaction(influx_pool, fun(Pid) -> influx_client:write(Pid, <<"metric">>, <<"nannong">>, Precision, Points) end); Other -> lager:debug("[iot_host] the data is invalid json: ~p", [Other]) end,