Commit Graph

127 Commits

Author SHA1 Message Date
eeff 528d910340 Add functions for notifying tags event
1. Add neu_plugin_notify_event_add_tags
  2. Add neu_plugin_notify_event_del_tags
  3. Add neu_plugin_notify_event_update_tags
2022-01-21 18:58:34 +08:00
eeff 83158e3845 Add new event type for tags
Add NEU_EVENT_ADD_TAGS, NEU_EVENT_UPDATE_TAGS, NEU_EVENT_DEL_TAGS
2022-01-21 18:58:34 +08:00
eeff c21ee589b8 Fix neu_json_update_tags_req_t to include group_config_name 2022-01-21 18:58:34 +08:00
fengzero db914268be the basic info(plugin name, type, kind...) of the plugin is read from the dynamic library
add dynamic library search path configuration, install to
/etc/ld.so.conf.d/

dynamic library search path priority:
  1. driver.path in neuron.yaml
  2. os path
2022-01-19 16:56:10 +08:00
gc87 b1cfb43096 Move mqtt components to the base library 2022-01-18 18:11:58 +08:00
fengzero 9e60bd2101 plugin: add validate function in plugin funs
check whether the tag conforms to the relevant driver specifications
2022-01-17 17:19:50 +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
fengzero b800280314 connection api: udp/tcp/tty 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 0981bc06b1 Change the vector to a new remote repo 2022-01-07 17:13:11 +08:00
Parker Liu fcae8d46de Fix failed to pass clang-format in neu_data_expr.h 2021-12-31 15:08:13 +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
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
lixiumei 268e6b568b Fix auto-code generation header file with #include json/json.h 2021-12-09 19:07:26 +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 a74e09bace Add NEU_ERR_TAG_NAME_EXIST error code 2021-12-03 17:30:55 +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
Parker Liu 6360ef39f1 Add a traverse function for idhash table 2021-12-01 10:57:46 +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
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
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 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
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +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
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
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 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