lixiumei
d035272b31
The plugin headers are contained in the include directory
2021-11-04 10:57:41 +08:00
lixiumei
9f9aa5ec78
Modbus_tcp_config parameter initialisation and setting
2021-11-04 10:57:41 +08:00
fengzero
37f77bdd04
Add mqtt function code
2021-11-03 03:35:56 +00: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
Parker Liu
dea8adb412
Fix issue of incorrect calculate size of array of cstr
2021-10-29 10:16:45 +08:00
Parker Liu
bd07258233
Rename the NEU_REQRESP_GET_NODE_STATE/NEU_REQRESP_NODE_STATE
2021-10-28 18:20:25 +08:00
fengzero
bd5647257e
Add node state: running state and link state & api: start/stop node
...
note start/stop node operation
2021-10-28 18:06:02 +08:00
fengzero
bbb9bfc34c
Add api: get node setting
...
store node settings in adapter
2021-10-26 15:31:40 +08:00
Parker Liu
0767be8347
Add definition of error codes
2021-10-25 18:34:35 +08:00
fengzero
2f531522cb
add unit test of the schema valid
2021-10-25 18:33:28 +08:00
fengzero
e738e41b5d
Add api: get plugin schema & config node
...
check the param according to the schema
2021-10-25 18:33:28 +08:00
fengzero
21ddcf8bce
api modify & plugin param schema
...
get node: add plugin_id in response
get plugin: add query param plugin_id
2021-10-21 08:53:36 +00:00
Parker Liu
43b5a2de80
Change val_data to p_val_data in value_data_serialize function
2021-10-21 10:21:22 +08:00
fengzero
92f0ccccdf
rename tag id in json
2021-10-20 07:41:02 +00:00
Parker Liu
597cf8a9da
Fix issue of incorrect serialize primary value of array
2021-10-20 15:05:46 +08:00
Parker Liu
e09f221616
Fix issue of incorrect free referenced value in neu_dvalue_uninit function
2021-10-20 09:42:06 +08:00
Parker Liu
5eacdf938d
Fix memory leak issue in serial/deserial data value
2021-10-19 16:43:05 +08:00
fengzero
5ba8e31494
fix the occasional crash of the read and write api
...
add api handle ctx to the list before sending cmd
2021-10-19 14:38:29 +08:00
fengzero
96940eb3be
add read/write api
...
support bit/int16/uint16/int32/uint32/float
2021-10-18 14:53:24 +08:00
fengzero
6eaa2908bf
api: read/write subscribe/unsubscribe
2021-10-15 07:20:23 +00:00
fengzero
60989fb4a3
del context in msg
2021-10-15 03:17:47 +00:00
fengzero
e41594f6c1
api server: support CORS
2021-10-15 02:28:39 +00:00
Parker Liu
defa2b38f9
Fix crash issue when stop and unregister adapters
2021-10-14 17:49:47 +08:00
Parker Liu
2393f52626
Update main.c
2021-10-14 16:47:37 +08:00
fengzero
34647e8ae0
Add signal processing
...
Make the program exit normally and make libasan memory detection take
effect
2021-10-14 16:47:37 +08:00
lixiumei
7572835b5b
Implement tty device list interface function and find tty device
2021-10-12 15:48:32 +08:00
gc87
03a573bc46
Use groupconfig to limit the parameter range of write commands
...
- Add test
2021-10-12 10:09:45 +08:00
gc87
693d68e231
Remove uuid-dev dependency and use openssl random number generator to implement uuid v4
2021-10-09 18:40:55 +08:00
Parker Liu
f57880ec89
Improve the implementation of serialize/deserialize data value
...
* Fix some memory leak in serialize/deserialize function
* Modify unit test case for data value
2021-10-09 18:07:57 +08:00
Parker Liu
fc8740dc75
Ad get value type function for data value
2021-10-08 11:33:56 +08:00
Parker Liu
f431b27b9b
Delete some abolition functions and add some functions for fix issue of
...
memory leaking
* Delete neu_dvalue_array_new and neu_dvalue_vec_new
* Delete set/get function for vec and array
* Add free sub data value in array and vector
2021-09-29 18:51:41 +08:00
Parker Liu
940acfd3f6
Improve the implementation of set/get functions in data value
2021-09-28 17:22:25 +08:00
Parker Liu
e6ff008086
Add response message and support result of array for read/write
...
* Add support MSG_DATA_READ_RESP/MSG_DATA_WRITE_RESP in adapter
for read/write data
* Add NEU_REQRESP_READ_RESP/NEU_REQRESP_WRITE_RESP in core manager
for read/write data
* Add return result of array in sample driver plugin for read/write data
* Add handle result of array in sample app plugin for read/write data
2021-09-28 12:08:43 +08:00
lixiumei
8e2222c379
modbus read/write value
2021-09-28 12:07:39 +08:00
gc87
335b355d52
Add operation function of NEU_DTYPE_ERRORCODE type
...
- Add test case
2021-09-28 12:03:31 +08:00
fengzero
72a19cfeed
add subscribe/unsubscribe common function
2021-09-27 14:13:07 +08:00
fengzero
3a5d779e13
add bit type function, decode write req to val
2021-09-27 14:13:07 +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
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
Parker Liu
f4ad674df0
Add support subscribe/unsubscribe node in adapter and other functions
...
* Add subscribe/unsubscribe node in command and request interface.
* Add neuron request structure for subscribe/unsubscribe node.
* Add subscribe node before enter message loop.
* Add unsubscribe node after exit message loop.
* Add compare function for primitive value.
2021-09-23 18:17:39 +08:00
Parker Liu
f552b41253
Add forward subscribe/unsubscribe message to driver adapter
...
* Add vector_find_index/vector_find_item/vector_has_elem util function
for vector.
* Forward subscribe/unsubsribe message in manager, and make sure to
forward the subscribe/unsubsribe message only once.
2021-09-22 18:28:32 +08:00
fengzero
4f5e858146
modbus: add subscribe/unsubscribe reqeust and check for group config updates
2021-09-22 10:12:50 +08:00
fengzero
44f05110d2
refactor decode/encode json
...
decode buf to neu_data_val_t
encode neu_data_val_t to buf
compile yaml as a dynamic library
2021-09-22 10:12:50 +08:00
Parker Liu
05ee33fefe
Add unittest for serialize/deserialize int-val and string-val pair
2021-09-18 16:47:03 +08:00
Parker Liu
19aaceadda
Add int-val and string-val pair structue for data value
...
* Add neu_int_val_t and neu_string_val_t structures and functions
* Add functions for set/get int-val and string-val in data value
* Add functions for supoort serial/deserial int-val and string-val
2021-09-17 19:59:02 +08:00