lixiumei
956fcaca38
Improve prim_val and cstr_val serialize and deserialize testing
2021-10-18 16:39:03 +08:00
lixiumei
11b9558ddb
Add int_val and string_val serialize and deserialize testing
2021-10-18 16:39:03 +08:00
fengzero
96940eb3be
add read/write api
...
support bit/int16/uint16/int32/uint32/float
2021-10-18 14:53:24 +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
lixiumei
ee75b3c09b
Perfection modbus read/write error code
2021-09-30 14:31:53 +08:00
lixiumei
e90e3f8832
Add neu_dvalue_bit test and neu_dvalue_bytes test
2021-09-29 19:04:11 +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
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
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
ba89625545
Switch to neu_data_val_t in sample plugin for read and write
2021-09-26 15:06:05 +08:00
lixiumei
bf122ec702
Refining basic data structure tests
2021-09-24 19:32:34 +08:00
fengzero
662ae1ec2d
refactor json parse
...
separate mqtt parameter decode/encode
2021-09-24 16:06:48 +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
abdd56c897
Comment the test statement for check IP address of mqtt server
2021-09-18 10:10:42 +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
Parker Liu
62abad7bb9
Fix issue of failed build datatag_table_test and some memory leak issue
2021-09-16 11:30:23 +08:00
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
6817eeae6d
Improve the read command of opcua driver
2021-09-13 18:10:07 +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
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
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
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
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
gc87
52d3e49482
Add tag group config list query
2021-08-30 21:42:54 +08:00
Parker Liu
91a1b94fbe
Remove include bits/pthreadtypes.h for building in macOS
2021-08-30 14:58:12 +08:00
lixiumei
7bb6562b19
Add datatag table tag JSON analysis and test modifications
2021-08-30 11:39:53 +08:00
lixiumei
bc35514856
Add datatag table test
2021-08-30 11:39:53 +08:00
fengzero
3200d1423a
Fix encode read/write function code
2021-08-29 16:04:15 +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
gc87
11f7141af2
Improve MQTT driver and Variable
...
1. Variable array serialization and deserialization support
2. Variable basic data type setting
3. Variable export function unit test
4. Integrate MQTT and Variable
5. Delete the work queue in the MQTT driver
2021-08-25 12:10:30 +08:00