Commit Graph
158 Commits
Author SHA1 Message Date
lixiumei123 22c8ea8fdd add plugin manager test (#77)
* add plugin manager test

* Plugin manager test add a check if the plugin_info is equal to param_update
2021-09-16 11:04:41 +08:00
fengzero 312d432569 fix use nng in plugins by linking dynamic libraries
clang-format message_handle
2021-09-16 10:14:08 +08:00
Parker Liu 8d14c5ec8c Add get/set familly functions for cstr/string/bytes/array/vec 2021-09-15 19:02:28 +08:00
fengzero 370aed5e2d modbus tcp: add cycle read
del demo code
use aio timeout as timer
2021-09-15 19:00:14 +08:00
gc87 7c3a2ccfaa Complete adaptation of mqtt driver and modbus-tcp driver
1. Fix modbus write value error
2021-09-14 10:28:24 +08:00
gc87 6817eeae6d Improve the read command of opcua driver 2021-09-13 18:10:07 +08:00
fengzero 0fed83398e read/write 2 tags for demo 2021-09-13 17:41:42 +08:00
Parker Liu 08d0af6473 Remove some warnings of neuron data value 2021-09-13 12:20:51 +08:00
Parker Liu 767d4459e5 Fix memory leak in data_val_test.cc and reformat source files 2021-09-13 10:20:17 +08:00
Parker Liu 8df731b7ce Add a new data value type with serialize/deserialize function
* Add a structure for fixed array
* Add a structure for bytes
* Add unit test cases of neuron data type
2021-09-13 09:03:46 +08:00
gc87 112f9fe0f3 Add opcua plugin support
1. Update README.md
2. Update install-lib.sh
3. Add the key field to the variable
4. Use config to read
5. It works
2021-09-12 22:58:51 +08:00
fengzero a84853692a Add parser yaml config module
del unused file
dashboard plugin read config from neuron.yaml
2021-09-11 11:09:50 +08:00
lixiumei d91f506e2c fix the problems of test plugin api interface functionality 2021-09-11 10:53:33 +08:00
lixiumei 9005a0305f Add add/delete/update/get plugin api 2021-09-11 10:53:33 +08:00
lixiumei 071de30f90 Add add/delete/update/get plugin api 2021-09-11 10:53:33 +08:00
fengzero 07e9b226cf Add node/group config api
support add/del/update/get
rename group config json field
2021-09-09 22:07:00 +08:00
lixiumei 4ba98dacff Add plugin json parse and plugin test 2021-09-09 11:51:52 +08:00
gc87 dba5a634a2 Dynamically add and delete datatag_ids of group config
1. Fix spelling errors in function names and structure names
2. Delete the nodeId field of the return value of get group config
2021-09-09 11:01:48 +08:00
lixiumei 93a090ea95 Add plugin json parse 2021-09-09 10:22:29 +08:00
Parker Liu ce36e2e5dd Fix issue of stuck on waiting for bind adapter when add group config
The nng_dial function sometimes returned after call the callback
function manager_bind_adapter by nng_pipe_notify. This causes the
manager_bind_adapter function to be called with another missing adapter,
the bind_count of current bound adapter should not be changed, so it
will be stuck on waiting for the bind adapter.
2021-09-08 19:25:40 +08:00
Parker Liu 8cc26fd524 Add a judgment to prevent register a adapter with same name 2021-09-08 17:03:26 +08:00
gc87 0513895a8d Remove the group item from the API parameters
1. Remove internal function name prefix
2021-09-08 10:22:33 +08:00
lixiumei123 563ae2cd10 Merge pull request #66 from lixiumei123/main
fix format: neu_json_node.h
2021-09-07 18:21:40 +08:00
lixiumei 9851dd1220 fix format: neu_json_node.h 2021-09-07 10:20:29 +00:00
lixiumei 342841d624 add adapter json parse and test 2021-09-07 18:05:49 +08:00
fengzeroz bd6c0e15b5 Merge pull request #64 from fengzeroz/main
fix clang-format
2021-09-07 17:00:59 +08:00
fengzero f291fceeab fix clang-format 2021-09-07 08:58:40 +00:00
fengzero bb4ebdd75e refactor api server, add datatag api
use different server process api and web
rename tags field
merge json read/write
2021-09-07 16:56:33 +08:00
fengzero 1d974b7120 Add add/del/update/get plugin function 2021-09-07 16:56:33 +08:00
gc87 f7eb237354 [WIP]Create a series of APIs about group config
1. Rewrite get_group_config
2. Add add_group_config/update_group_config/delete_group_config
3. Fix neu_datatag_mng_update_grp_config and
neu_datatag_mng_del_grp_config
2021-09-07 15:50:24 +08:00
Parker Liu 94aed75898 Add functions of add/del/update/get plugin lib for plugin lib
* Add functions of add/del/update/get plugin lib in plugin_manager.c
* Add command of add/del/update/get plugin lib in adapter.c
2021-09-03 19:21:52 +08:00
gc87 7fea1b495d Refactor the MQTT driver
1. Split source code files
2. Add copyright information
3. Split parser into different files
4. Use the interface function in neu_plugin_common
2021-09-03 18:36:08 +08:00
fengzero d204f8f633 refactor http api server
default response header
static var plugin
http request macro
2021-09-03 14:38:05 +08:00
fengzeroz 4f624ec001 Merge pull request #57 from fengzeroz/main
fix send msg assert buf len
2021-09-03 14:17:30 +08:00
fengzero 091a41bfd5 fix send msg assert buf len 2021-09-03 06:16:52 +00:00
fengzeroz 9cc0ad22b1 Merge pull request #56 from fengzeroz/main
fix get tag table return value
2021-09-03 14:10:18 +08:00
fengzero 73c23664df fix get tag table return value 2021-09-03 06:09:18 +00:00
fengzero 363a04e1c5 Add process msg macro
get nodes/config return vector_t
2021-09-03 11:22:13 +08:00
fengzero be1d8919b5 Add plugin cmd function
add/del/update/get node
add/del/update/get group config
send read/write cmd
response trans data
get self node id
2021-09-02 15:56:30 +08:00
Parker Liu 31b158af53 Add a definition of NEU_PLUGIN_MAGIC_NUMBER for magic number of plugin 2021-09-02 12:07:36 +08:00
fengzero 288175996c Add plugin cmd function
add NEU_REQRESP_GET_SELF_NODE_ID cmd
add get_datatags_table func
define neu_addt_str_t
fix compile warning
add magic number and check function in neu_plugin_common_t
2021-09-02 11:22:51 +08:00
fengzero fb14067105 Add http response function
refactor handle response
2021-09-01 15:13:15 +08:00
gc87 6872879c22 Add tags operation api
Modify modbus-tcp read and write type
2021-08-31 18:41:45 +08:00
gc87 3659c04cca Fix early return 2021-08-30 21:42:54 +08:00
gc87 52d3e49482 Add tag group config list query 2021-08-30 21:42:54 +08:00
fengzero 152302f68b del macro DEMO, find read/write tag from group config 2021-08-30 18:14:33 +08:00
Parker Liu 3c3edda5c6 Add call config function of plugin when receive pong message 2021-08-30 16:15:16 +08:00
Parker Liu 91a1b94fbe Remove include bits/pthreadtypes.h for building in macOS 2021-08-30 14:58:12 +08:00
Parker Liu e1eeb63e1a Add judgement of cplusplus in all header files of include 2021-08-30 14:36:44 +08:00
lixiumei 7bb6562b19 Add datatag table tag JSON analysis and test modifications 2021-08-30 11:39:53 +08:00