Commit Graph

206 Commits

Author SHA1 Message Date
Parker Liu a7088140ad Fix issue of it sometimes crashed when cycle read datatag in modbus tcp plugin 2021-12-17 11:20:39 +08:00
lixiumei 268e6b568b Fix auto-code generation header file with #include json/json.h 2021-12-09 19:07:26 +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 400e0f6934 Fix subscribe group config
This fix neu_manager to add the group config to the subscribing node
  when north app subscribe for group config.
2021-12-06 15:22:27 +08:00
Parker Liu 1f5d56e2ba Fix memory leak of subscribing a group config 2021-12-03 18:23:35 +08:00
eeff 4b6e9acc1e Fix datatag name uniqueness checking 2021-12-03 17:30:55 +08:00
eeff 3b606a10b4 Add neu_datatag_alloc and neu_datatag_free 2021-12-03 17:30:55 +08:00
eeff 33cd14a117 Add hash table utils 2021-12-03 17:30:55 +08:00
eeff 5a40a66ac1 Refactor: variable renamning
Rename neu_datatag_table to datatag_table
2021-12-03 17:30:55 +08:00
Parker Liu b203d685b1 Fix issue of it can not get data after subcribe a group config 2021-12-02 19:08:31 +08:00
Parker Liu 6360ef39f1 Add a traverse function for idhash table 2021-12-01 10:57:46 +08:00
Parker Liu 8faad35f93 Fix crash issue of adding a same name group config 2021-12-01 10:46:35 +08:00
fengzero 66b74c690e add asynchronous io and timer
asyn io is not implemented

use epoll/timerfd on linux
use kqueue on unix
2021-11-30 15:38:14 +08:00
eeff e417205727 Add log label to the logging facilities
1. Add a new label argument in log_log
  2. Add a set of interfaces to assist node name logging
2021-11-30 09:58:49 +08:00
eeff 019efe4d2c Add function neu_plugin_self_node_name 2021-11-30 09:58:49 +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 6a824a6e8c API function text add JWT 2021-11-29 18:16:50 +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
Parker Liu d8439b9a35 Move the printing adapter name of log to before unbind wake 2021-11-29 17:01:19 +08:00
fengzero fd07e7fd5c ft: modbus tcp read/write
modbus tcp server simulator
2021-11-29 12:17:33 +08:00
Parker Liu 2d66177bbb Do not lock adapters_mtx when waiting unbind adapter 2021-11-27 14:37:08 +08:00
Parker Liu 96ec75833e Fix issue of occasional crash when deleting a node 2021-11-26 23:10:16 +08:00
Parker Liu dfeb5fb4a7 Add function neu_system_ref_group_config for reference a special group config 2021-11-26 18:37:56 +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 fbb004e0b3 return the correct node according to the node type 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 6a1f182e46 Fix issue of system hung on restart a node 2021-11-23 16:30:25 +08:00
Parker Liu be83f83101 Send a exit message to a node that should be stoped 2021-11-23 12:14:53 +08:00
Parker Liu d50220724a Fix issue of the manager always unbind last registered adapter 2021-11-20 17:01:04 +08:00
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +08:00
Parker Liu 6c6f025dfe Merge branch 'lixiumei123-main' into main 2021-11-17 19:17:43 +08:00
lixiumei c0af86b055 Replace all json files with the latest generator 2021-11-17 06:38:59 +00:00
lixiumei d39111bf72 Automatically generated code replace neu_json_tag 2021-11-17 02:55:50 +00:00
alvin1221 7d5522630d Support cross compile & Fix incompatible errors 2021-11-16 22:28:12 +08:00
lixiumei af565723a9 Automatically generated code replace neu_json_mqtt 2021-11-16 15:53:31 +08:00
lixiumei a4c60f6428 Automatically generated code replace neu_json_error 2021-11-16 15:53:31 +08:00
lixiumei 6cb85c6516 Automatically generated code replace neu_json_rw 2021-11-16 15:53:31 +08:00
lixiumei 66fc76d806 Automatically generated code replace neu_json_mqtt 2021-11-16 06:32:23 +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 4730a4e30c Changing the location of the neu_parse_write_req_to_val 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