gc87
47f6e54efd
Fixed crash caused by uninitialized OPCUA client
2021-09-26 18:53:03 +08:00
fengzero
7f744a1956
fix uninitialized TAILQ
...
causes a crash when accessing TAILQ
2021-09-26 17:46:11 +08:00
fengzero
a9c18532ee
del add/update group config dst_node_id
2021-09-26 17:24:47 +08:00
fengzero
d25f93290e
fix json parse unit test
...
clang-format neu_types.h
2021-09-26 17:24:47 +08:00
Parker Liu
3b369acf25
Add send subscribe node message when Add default group configs
2021-09-26 17:15:59 +08:00
Parker Liu
ba89625545
Switch to neu_data_val_t in sample plugin for read and write
2021-09-26 15:06:05 +08:00
gc87
e018d73a6f
Fix the link error of OPCUA driver
2021-09-24 18:49:04 +08:00
gc87
5898c2ab8e
Add cyclic reading support and subscription support
2021-09-24 16:10:03 +08:00
gc87
eb00cc6070
Refactoring the OPC-UA driver
...
1. Simplify the code of read and write
2021-09-24 16:10:03 +08:00
fengzero
662ae1ec2d
refactor json parse
...
separate mqtt parameter decode/encode
2021-09-24 16:06:48 +08:00
fengzero
4f5e858146
modbus: add subscribe/unsubscribe reqeust and check for group config updates
2021-09-22 10:12:50 +08:00
gc87
dae9f9def4
Read configuration file
2021-09-16 19:16:49 +08:00
Parker Liu
74f1c33968
Add periodic read command and subscribe/unsubscribe driver command
...
* Add commands for start/stop periodic read and support in manager
* Add commands for subscribe/unsubscribe driver and support in manager
* Add commands for group config changed and support in manager
2021-09-16 19:12:05 +08:00
Parker Liu
1e7264f4a7
Add a standalone CMakeLists file for sample plugins
2021-09-16 11:50:31 +08:00
Parker Liu
b49332ca2d
Fix issue of failed build modbus plugin in macOS
2021-09-16 11:43:59 +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
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
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
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
gc87
0513895a8d
Remove the group item from the API parameters
...
1. Remove internal function name prefix
2021-09-08 10:22:33 +08:00
lixiumei
342841d624
add adapter json parse and test
2021-09-07 18:05:49 +08: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
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
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
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
lixiumei
7bb6562b19
Add datatag table tag JSON analysis and test modifications
2021-08-30 11:39:53 +08:00
gc87
ebe450e303
Read and write Modbus driver through MQTT driver
...
1. Add config cmd to neu_manager
2. Modify MQTT driver to read and write
3. Fix modbus response
2021-08-28 16:43:47 +08:00
fengzero
1be8327439
read/write fixed value for demo
2021-08-28 14:15:04 +08:00
fengzero
e09963911d
Add unit test for modbus point
...
sort modbus point for optimizing read efficiency
read modbus point(coil, input, hold reg, input reg)
write modbus point(coil, hold reg)
2021-08-27 17:04:15 +08:00
Parker Liu
7d6cd69c2e
Add a waiting for get group configs in sample app plugin
2021-08-27 16:47:14 +08:00
fengzero
8194e2b2c7
Add write operation for modbus tcp, and process NEU_REQRESP_READ_DATA/NEU_REQRESP_WRITE_DATA
...
NEU_REQRESP_READ_DATA:
interval > 0: just parse modbus point
interval ==0: read modbus point
2021-08-26 15:39:34 +08:00
Parker Liu
0013a64ba3
Fix issue of mqtt plugin can't get databuf response from driver
...
* Sometimes add subscription pipe to group config will be executed before
bind adapter, the wrong pipe will be subscribe in group config. So we
wait for complete binding adapter and then add subscription pipe.
* Fix issue of failed to build with gcc 10.3.0
2021-08-26 14:26:33 +08:00
fengzero
8f72ec0c7e
refactor: modbus tcp read point
...
use point module process modbus point order
remove timerfd epoll
2021-08-25 18:38:39 +08:00
Parker Liu
9c42cdea41
Fix failed build in macOS by remove using epoll
...
The modbus tcp plugin can not work good because we use replace some functions
with empty function.
2021-08-25 16:24:28 +08:00