Commit Graph

70 Commits

Author SHA1 Message Date
lixiumei 654ba660d2 Adding functional tests for opcua RW 2021-12-09 19:07:26 +08:00
eeff 935b20eb40 Fix usage of http_get_param_int 2021-12-08 14:39:33 +08:00
eeff eb25ff64c1 Fix restful plugin http query parameter parsing.
Previously the function get_param used a static variable to store
  parsed data which is not re-entrant, and thus cause bugs.

  1. fix get_param and http_get_param to return pointer and len
  2. Remove http_get_param_int
  3. Add http_get_param_uintmax
  4. Add http_get_param_uint32
  5. add http_get_param_node_id
  6. add http_get_param_node_type
2021-12-08 14:39:33 +08:00
gc87 03f2ac2fa1 Add Device error code in opcua 2021-12-08 14:32:51 +08:00
Parker Liu 2e889bda3b Fix error of clang-format and remove sudo in dev.yml 2021-12-08 11:36:59 +08:00
eeff a601c441d7 Fix restful plugin datatag handler 2021-12-03 17:30:55 +08:00
eeff a74e09bace Add NEU_ERR_TAG_NAME_EXIST error code 2021-12-03 17:30:55 +08:00
lixiumei e477e8d184 Fix http error code 2021-12-01 16:59:02 +08:00
Parker Liu ae131c4da6 Fix building error in tcp_server/neu_plugin_common.c for macOS 2021-11-29 18:49:24 +08:00
lixiumei 253d346452 Add login and logout 2021-11-29 18:16:50 +08:00
lixiumei dcf9160735 login 2021-11-29 18:16:50 +08:00
fengzero fd07e7fd5c ft: modbus tcp read/write
modbus tcp server simulator
2021-11-29 12:17:33 +08:00
fengzero 6a7297cc5a ft: Add node state/ctl case 2021-11-24 18:03:04 +08:00
fengzero 8893ffbb19 refactor node state and ctl(start/stop)
plugin add start/stop interface

open: init plugin struct
init: initialize other context
start: plugin start workflow
2021-11-24 16:28:05 +08:00
fengzero f839095692 api: node supports updating name 2021-11-24 14:49:21 +08:00
fengzero 3ed6f842ec refactor http error response
use the state of the adapter as the running state of the plugin
2021-11-24 14:49:21 +08:00
Parker Liu 72d0adf8d9 Add error processing for function dashb_plugin_open 2021-11-19 16:34:28 +08:00
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +08:00
lixiumei d39111bf72 Automatically generated code replace neu_json_tag 2021-11-17 02:55:50 +00:00
lixiumei 2a6b9a8904 Automatically generated code replace neu_json_error 2021-11-16 02:30:51 +00:00
lixiumei a28410539d Automatically generated code replace neu_json_rw 2021-11-16 01:44:19 +00:00
lixiumei 4a8ab3d3cd Extracting neu_json_error from neu_json_fn 2021-11-15 18:20:52 +08:00
lixiumei c65bf3b35a Automatically generated code replace neu_json_group_config 2021-11-15 18:20:52 +08:00
lixiumei 6295c5aa43 Automatically generated code replace neu_json_tty 2021-11-15 11:04:34 +08:00
lixiumei 704fbc35e1 Automatically generated code replace neu_json_plugin 2021-11-15 11:04:34 +08:00
lixiumei 1518af2670 Automatically generated code replace neu_json_node 2021-11-15 11:04:34 +08:00
lixiumei 193e4abea5 Automatically generated code replace neu_json_tag 2021-11-11 22:03:31 +08:00
fengzero 2ce448e2a4 add function test for group config api 2021-11-09 17:59:52 +08:00
fengzero 7aa611a2e8 Add node-related functional tests
api response the corresponding error code
2021-11-09 17:59:52 +08:00
lixiumei d035272b31 The plugin headers are contained in the include directory 2021-11-04 10:57:41 +08:00
fengzero b097145cc1 fix get tags filter by group config name 2021-11-03 09:37:48 +00:00
fengzero 9948e0fd6f fix the node to which the subscribed config stored in the adapter belongs 2021-11-03 03:27:32 +00:00
fengzero 6dc62e1885 Add api: get sub group configs 2021-11-02 18:04:47 +08:00
fengzero bd5647257e Add node state: running state and link state & api: start/stop node
note start/stop node operation
2021-10-28 18:06:02 +08:00
fengzero 26b2ff650a fix: get schema api
CORS url
2021-10-26 07:37:13 +00:00
fengzero bbb9bfc34c Add api: get node setting
store node settings in adapter
2021-10-26 15:31:40 +08:00
fengzero e738e41b5d Add api: get plugin schema & config node
check the param according to the schema
2021-10-25 18:33:28 +08:00
fengzero 611cb068fc fix check plugin_id 2021-10-21 09:03:21 +00:00
fengzero 21ddcf8bce api modify & plugin param schema
get node: add plugin_id in response
get plugin: add query param plugin_id
2021-10-21 08:53:36 +00:00
fengzero 5ba8e31494 fix the occasional crash of the read and write api
add api handle ctx to the list before sending cmd
2021-10-19 14:38:29 +08:00
fengzero 23bd25f8c8 fix memory leak
api: get tags add query parameter group_config_name
2021-10-19 11:38:59 +08:00
fengzero 9524b859ed fix subscribe/unsubscribe response code 2021-10-18 08:20:54 +00:00
fengzero 96940eb3be add read/write api
support bit/int16/uint16/int32/uint32/float
2021-10-18 14:53:24 +08:00
fengzero 438555b948 api response Allow header 2021-10-15 07:39:43 +00:00
fengzero 6eaa2908bf api: read/write subscribe/unsubscribe 2021-10-15 07:20:23 +00:00
fengzero 60989fb4a3 del context in msg 2021-10-15 03:17:47 +00:00
fengzero e41594f6c1 api server: support CORS 2021-10-15 02:28:39 +00:00
fengzero 34647e8ae0 Add signal processing
Make the program exit normally and make libasan memory detection take
effect
2021-10-14 16:47:37 +08:00
lixiumei 7572835b5b Implement tty device list interface function and find tty device 2021-10-12 15:48:32 +08:00
fengzero a9c18532ee del add/update group config dst_node_id 2021-09-26 17:24:47 +08:00