fix nannong
This commit is contained in:
parent
8deb048b67
commit
83a8882b4e
@ -15,6 +15,15 @@
|
|||||||
-export([insert_services/1]).
|
-export([insert_services/1]).
|
||||||
-export([insert_endpoints/0, test_http/0, test_mysql/0, test_mqtt/0, test_influxdb/0]).
|
-export([insert_endpoints/0, test_http/0, test_mysql/0, test_mqtt/0, test_influxdb/0]).
|
||||||
|
|
||||||
|
fun_x(LocationCode, Fields, Timestamp) ->
|
||||||
|
Data = #{
|
||||||
|
<<"version">> => <<"1.0">>,
|
||||||
|
<<"location_code">> => LocationCode,
|
||||||
|
<<"ts">> => Timestamp,
|
||||||
|
<<"properties">> => Fields
|
||||||
|
},
|
||||||
|
{ok, iolist_to_binary(jiffy:encode(Data, [force_utf8]))}.
|
||||||
|
|
||||||
test_influxdb() ->
|
test_influxdb() ->
|
||||||
UUID = <<"device123123">>,
|
UUID = <<"device123123">>,
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user