Merge pull request #1054 from fengzeroz/main

fix compile error
This commit is contained in:
fengzeroz
2023-02-06 17:37:16 +08:00
committed by GitHub
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"libplugin-ekuiper.so",
"libplugin-monitor.so",
"libplugin-mqtt.so",
"libplugin-modbus-tcp-community.so",
"libplugin-modbus-tcp-comm.so",
"libplugin-file.so"
]
}
+1 -1
View File
@@ -3,7 +3,7 @@ Library REST http://127.0.0.1:7000
Resource common.resource
*** Variables ***
${PLUGIN-MODBUS-TCP} Modbus TCP
${PLUGIN-MODBUS-TCP} Modbus TCP community
${PLUGIN-MQTT} MQTT
${PLUGIN-EKUIPER} eKuiper
+2 -2
View File
@@ -17,8 +17,8 @@ Resource simulator.resource
${test_data_dir} ft/data
${PLUGIN_MODBUS_TCP} modbus-tcp
${PLUGIN_MQTT} mqtt
${PLUGIN_MODBUS_TCP} Modbus TCP community
${PLUGIN_MQTT} MQTT
${MQTT_CMD_NONE}
+2 -2
View File
@@ -3,10 +3,10 @@ set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/plugins")
set(MODBUS_SRC modbus.c modbus_point.c modbus_req.c modbus_stack.c)
set(CMAKE_BUILD_RPATH ./)
file(COPY ${CMAKE_SOURCE_DIR}/plugins/modbus/modbus-tcp.json DESTINATION ${CMAKE_BINARY_DIR}/plugins/schema/)
file(COPY ${CMAKE_SOURCE_DIR}/plugins/modbus/modbus-tcp-community.json DESTINATION ${CMAKE_BINARY_DIR}/plugins/schema/)
# modbus rtu plugin
set(MODBUS_TCP_PLUGIN plugin-modbus-tcp-community)
set(MODBUS_TCP_PLUGIN plugin-modbus-tcp-comm)
set(MODBUS_TCP_PLUGIN_SOURCES modbus_tcp.c
${MODBUS_SRC})
add_library(${MODBUS_TCP_PLUGIN} SHARED)