Commit Graph
79 Commits
Author SHA1 Message Date
lixiumei d035272b31 The plugin headers are contained in the include directory 2021-11-04 10:57:41 +08:00
lixiumei 49c8b7f8ba Improving unit tests for int_val 3D arrays 2021-11-03 10:21:36 +08:00
lixiumei 510265dacb Add unit test for 3D arrays of types double, cstr, int_val, str_val 2021-11-03 10:21:36 +08:00
gc87 940d6164f9 Implement MQTT-driven configuration
Initialization and setting of the config parameters of the MQTT driver
2021-11-02 18:07:49 +08:00
lixiumei bbe74dab3c Add unit test for 2D arrays of types double, cstr, int_val, str_val 2021-11-01 11:57:54 +08:00
Parker Liu 6bf65e3d59 Enable others unit tests beyond data_val_test 2021-10-29 10:16:45 +08:00
lixiumei 62fd4f5cbf Add unit test for serialization deserialization of 1D arrays of types double, cstr, int_val, string_val 2021-10-29 10:16:45 +08:00
fengzero ad8188fc6a separation unit test schema 2021-10-26 10:02:50 +00:00
lixiumei d8d4dbf175 Adding int 3D array serialisation and deserialisation tests 2021-10-26 16:21:52 +08:00
lixiumei fea8ae6b37 Fix issue of memory leaks in 2D arrays during testing 2021-10-26 16:21:52 +08:00
Parker Liu 33310808bc Fix issue of memory leaks in 2D arrays during testing 2021-10-25 18:44:11 +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
lixiumei 2181839a8e Adding a 2D array test 2021-10-25 17:44:45 +08:00
lixiumei c9350a35e8 Adding a 2D array test 2021-10-25 17:44:45 +08:00
lixiumei 626354d13b Modify 'improve string_val serialize and deserialize testing' 2021-10-22 16:22:16 +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
gc87 5bdf4a2802 Remove paho.mqtt.c client 2021-10-20 15:46:25 +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
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