chore: update change && bump version

This commit is contained in:
firest 2024-02-28 09:39:46 +08:00
parent 77239da7ed
commit c3a2cf6220
3 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,7 @@
%% -*- mode: erlang -*-
{application, emqx_bridge_iotdb, [
{description, "EMQX Enterprise Apache IoTDB Bridge"},
{vsn, "0.1.5"},
{vsn, "0.1.6"},
{modules, [
emqx_bridge_iotdb,
emqx_bridge_iotdb_connector

View File

@ -70,6 +70,8 @@
-import(hoconsc, [mk/2, enum/1, ref/2]).
-dialyzer({no_match, [on_get_channel_status/3]}).
%%-------------------------------------------------------------------------------------
%% connector examples
%%-------------------------------------------------------------------------------------
@ -372,7 +374,12 @@ on_get_channels(InstanceId) ->
emqx_bridge_v2:get_channels_for_connector(InstanceId).
on_get_channel_status(InstanceId, _ChannelId, State) ->
on_get_status(InstanceId, State).
case on_get_status(InstanceId, State) of
connected ->
connected;
_ ->
disconnected
end.
%%--------------------------------------------------------------------
%% Internal Functions

View File

@ -0,0 +1 @@
Enhanced health checking for IOTDB connector, using its `ping` API replacing the old method which only validating via a socket connection.