eeff
790f0ebb0d
Make default persist adapter load persistence data at startup
2022-01-13 18:04:20 +08:00
eeff
3cf9030283
Update neu_manager to forward node event to persist adapter
...
1. Forward add/update/del node event in neu_manager loop
2. Handle add/update/del node event in persist adapter loop
2022-01-13 18:04:20 +08:00
eeff
434ce97f2b
Update adapter command to send node event
...
1. Add message type MSG_EVENT_ADD_NODE, MSG_EVENT_UPDATE_NODE,
MSG_EVENT_DEL_NODE
2. Send the corresponding message when add/update/del nodes
2022-01-13 18:04:20 +08:00
eeff
9e9c10f85a
Add default persist adapter
2022-01-13 18:04:20 +08:00
eeff
75a3ab32f2
Add dummy plugin
2022-01-13 18:04:20 +08:00
lixiumei
bcc57f4034
Fixing problems with neu_json_tty.c and json_group_configs.c autogenerated code
2022-01-13 16:51:19 +08:00
lixiumei
e610c8f431
Add persistence json and api
2022-01-12 16:47:35 +08:00
gc87
20415e5e81
Move schema.h to include directory
2022-01-12 11:11:36 +08:00
gc87
258f0a828a
Remove the libplugin-opcua project
2022-01-12 11:11:36 +08:00
eeff
c6365fd30c
Fix plugin_manager_get_all_plugins
2022-01-11 12:13:19 +08:00
fengzero
b800280314
connection api: udp/tcp/tty
2022-01-10 17:42:49 +08:00
fengzero
477a66a5ff
fix conflicts when multiple threads access group config
2022-01-10 17:42:49 +08:00
Parker Liu
10c7aec8b6
Add function neu_datatag_tbl_to_vector for store datatag table
2022-01-10 16:45:51 +08:00
Parker Liu
aeb020e885
Send a Exit message to manager for ensure quit the manager
...
* Create a main adapter for send message to neuron manager
2022-01-05 18:32:59 +08:00
Parker Liu
acb14bcdf3
Add shared data value mode for transfer data between adapters
...
* Add a function neu_dvalue_to_owned for owner all values in data value
and sub data values in it.
* Add a neu_trans_buf struct for wrap shared data value and
core_databuf.
* replace core_databuf with neu_trans_buf in read/write/transfer
message.
2021-12-31 15:01:25 +08:00
fengzero
99816cb1e2
fix: only when rv==0 and need_forward==1, the unsubscribe message is forwarded
2021-12-31 10:22:01 +08:00
eeff
322464c54b
Fix memory leak in macro ADAPTER_RESP_CODE
2021-12-30 11:16:44 +08:00
eeff
f41559bd73
Fix mqtt api get node setting
...
Fix handling of NEU_MQTT_OP_GET_NODE_SETTING to return the setting.
2021-12-22 18:59:27 +08:00
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