Commit Graph

123 Commits

Author SHA1 Message Date
Parker Liu 2b177aa015 Fix multi-times load json object from buffer when decode complex json string 2022-02-18 11:21:55 +08:00
Parker Liu 326a7cff88 Add shell script for generate parser files for api 2022-02-18 11:13:02 +08:00
lixiumei 19ba928e0d Fix the name of the persistent parser file 2022-02-16 18:02:05 +08:00
Parker Liu 4b90282802 Update persistance's parser file that generated by new json-autotype 2022-02-16 11:59:55 +08:00
lixiumei 3e4f0e073e Add unit test for getting neu_json_tty 2022-02-14 17:15:26 +08:00
gc87 21a22f7807 Delete all function codes of the MQTT API 2022-02-14 10:13:31 +08:00
fengzero 84accdf861 Delete the first errorcode in the read/write result 2022-02-11 11:54:13 +08:00
lixiumei 6e7fdbcc87 Adding data for pressures tests 2022-02-09 17:42:44 +08:00
eeff 418785d2c2 Fix persistence group config json unit tests 2022-01-24 18:22:59 +08:00
eeff dd0988d9c0 Fix datatag persistence api unit test 2022-01-21 18:58:34 +08:00
eeff acdb7ffcbf Fix unit test UpdateTagDecode of JsonDatatagTableTest 2022-01-21 18:58:34 +08:00
lixiumei 14b24f4f53 Adding tests for adapter,datatag,plugin and datatag persistence api 2022-01-19 17:22:26 +08:00
fengzero db914268be the basic info(plugin name, type, kind...) of the plugin is read from the dynamic library
add dynamic library search path configuration, install to
/etc/ld.so.conf.d/

dynamic library search path priority:
  1. driver.path in neuron.yaml
  2. os path
2022-01-19 16:56:10 +08:00
gc87 b1cfb43096 Move mqtt components to the base library 2022-01-18 18:11:58 +08:00
gc87 e1b4951b05 Add mqtt client interface layer
By adding an interface layer, you can easily support different mqtt clients, including MQTT-C and nng-mqtt
2022-01-18 18:11:58 +08:00
eeff 7404c64888 Fix plugin manager unit tests 2022-01-14 17:45:50 +08:00
eeff 75a3ab32f2 Add dummy plugin 2022-01-13 18:04:20 +08:00
lixiumei a2cca4a90d Adding tests for persistent group_config codes 2022-01-13 16:51:19 +08:00
lixiumei a82166f421 Add persistence json and API tests 2022-01-12 16:47:35 +08:00
gc87 20415e5e81 Move schema.h to include directory 2022-01-12 11:11:36 +08:00
gc87 258f0a828a Remove the libplugin-opcua project 2022-01-12 11:11:36 +08:00
Parker Liu 06a3929dd2 Fix memory leak issue in DatatagTableToVec test function 2022-01-10 17:08:35 +08:00
Parker Liu b022494450 Change the datatag_table_create to datatag_table in datatag_table_test.cc 2022-01-10 16:49:29 +08:00
Parker Liu 10c7aec8b6 Add function neu_datatag_tbl_to_vector for store datatag table 2022-01-10 16:45:51 +08:00
fengzero fa4724da97 del the test of mqtt in config 2021-12-30 18:12:55 +08:00
eeff 07b0e4f1ae Add unit tests for http_get_param 2021-12-08 14:39:33 +08:00
eeff e1567f1bff Fix datatag_table test cases 2021-12-03 17:30:55 +08:00
eeff a13653f5b5 Fix jwt_test ASAN odr-violation 2021-11-30 15:38:43 +08:00
lixiumei 253d346452 Add login and logout 2021-11-29 18:16:50 +08:00
lixiumei dcf9160735 login 2021-11-29 18:16:50 +08:00
gc87 7575f380fa Remote interface for node management
- Solve the problem of MQTT-C callback function locking
2021-11-24 19:01:58 +08:00
fengzero f839095692 api: node supports updating name 2021-11-24 14:49:21 +08:00
fengzero fbb004e0b3 return the correct node according to the node type 2021-11-24 14:49:21 +08:00
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +08:00
lixiumei d39111bf72 Automatically generated code replace neu_json_tag 2021-11-17 02:55:50 +00:00
lixiumei 66fc76d806 Automatically generated code replace neu_json_mqtt 2021-11-16 06:32:23 +00:00
lixiumei a28410539d Automatically generated code replace neu_json_rw 2021-11-16 01:44:19 +00:00
lixiumei c65bf3b35a Automatically generated code replace neu_json_group_config 2021-11-15 18:20:52 +08:00
lixiumei 4730a4e30c Changing the location of the neu_parse_write_req_to_val 2021-11-15 18:20:52 +08:00
lixiumei 704fbc35e1 Automatically generated code replace neu_json_plugin 2021-11-15 11:04:34 +08:00
lixiumei 1518af2670 Automatically generated code replace neu_json_node 2021-11-15 11:04:34 +08:00
lixiumei 193e4abea5 Automatically generated code replace neu_json_tag 2021-11-11 22:03:31 +08:00
gc87 f28bdb8270 Refactor the MQTT driver
- Add default initialization of variables
- Rename source file
2021-11-08 15:16:04 +08:00
gc87 13fb0e05be Refactored plugin opcua handle
- Delete subscription
- Modify function signature
- Add default initialization of variables
- Fix data type mapping from neuron to opcua
- Rename source file
2021-11-08 15:14:06 +08:00
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