mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
rename Modbus TCP community
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"libplugin-ekuiper.so",
|
||||
"libplugin-monitor.so",
|
||||
"libplugin-mqtt.so",
|
||||
"libplugin-modbus-tcp.so",
|
||||
"libplugin-modbus-tcp-community.so",
|
||||
"libplugin-file.so"
|
||||
]
|
||||
}
|
||||
@@ -6,7 +6,7 @@ set(CMAKE_BUILD_RPATH ./)
|
||||
file(COPY ${CMAKE_SOURCE_DIR}/plugins/modbus/modbus-tcp.json DESTINATION ${CMAKE_BINARY_DIR}/plugins/schema/)
|
||||
|
||||
# modbus rtu plugin
|
||||
set(MODBUS_TCP_PLUGIN plugin-modbus-tcp)
|
||||
set(MODBUS_TCP_PLUGIN plugin-modbus-tcp-community)
|
||||
set(MODBUS_TCP_PLUGIN_SOURCES modbus_tcp.c
|
||||
${MODBUS_SRC})
|
||||
add_library(${MODBUS_TCP_PLUGIN} SHARED)
|
||||
|
||||
@@ -55,12 +55,14 @@ static const neu_plugin_intf_funs_t plugin_intf_funs = {
|
||||
};
|
||||
|
||||
const neu_plugin_module_t neu_plugin_module = {
|
||||
.version = NEURON_PLUGIN_VER_1_0,
|
||||
.schema = "modbus-tcp",
|
||||
.module_name = "Modbus TCP",
|
||||
.module_descr = "The modbus-tcp plugin is used for devices connected using "
|
||||
"the modbus protocol tcp mode.",
|
||||
.module_descr_zh = "modbus-tcp 插件用于连接使用 modbus tcp 协议的设备",
|
||||
.version = NEURON_PLUGIN_VER_1_0,
|
||||
.schema = "modbus-tcp-community",
|
||||
.module_name = "Modbus TCP community",
|
||||
.module_descr =
|
||||
"The modbus-tcp community plugin is used for devices connected using "
|
||||
"the modbus protocol tcp mode.",
|
||||
.module_descr_zh =
|
||||
"modbus-tcp community 插件用于连接使用 modbus tcp 协议的设备",
|
||||
.intf_funs = &plugin_intf_funs,
|
||||
.kind = NEU_PLUGIN_KIND_SYSTEM,
|
||||
.type = NEU_NA_TYPE_DRIVER,
|
||||
|
||||
Reference in New Issue
Block a user