Commit Graph

53 Commits

Author SHA1 Message Date
fengzero cfc44903c1 remove uuid.h 2022-03-31 08:53:02 +00:00
fengzero cdb904287c move base64.h to utils 2022-03-31 08:47:05 +00:00
fengzero 04a8674a3f remove atomic_data.h 2022-03-31 08:38:09 +00:00
fengzero 39f9e0697d remove mem_alloc.h 2022-03-31 08:10:55 +00:00
eeff 33fd57670d Add option --log to main program
1. The --log option specifies to which file neuron logs
  2. Log to standard output or file, but not both
2022-03-25 14:55:02 +08:00
eeff 75c594533a Fix log to check quiet flag and level filter correctly 2022-03-25 14:06:44 +08:00
gc87 30f019cdde Add base64 codec 2022-03-01 13:55:04 +08:00
Parker Liu fdd18850b8 Add function neu_json_decode_by_json for partialy decode json buf 2022-02-17 17:51:17 +08:00
Parker Liu 4b90282802 Update persistance's parser file that generated by new json-autotype 2022-02-16 11:59:55 +08:00
gc87 a43e2d56c9 Fix the read function of file string 2022-02-14 17:14:38 +08:00
gc87 fc5ae5c0a3 Extracting public functions
- normal_handle.c/get_tty_file_list -> file.c/tty_file_list_get
2022-02-14 10:13:31 +08:00
eeff 45d3be37ab Add syslog callback in neu_log 2022-01-28 21:52:53 +08:00
Parker Liu 28adc16926 Reformatting neu_data_expr.c and hash_table.c to pass CI 2022-01-17 17:38:47 +08:00
Parker Liu ac2246d9ec Clean the warning in connection.c and hash_table.c 2022-01-17 16:25:05 +08:00
Parker Liu 2e889bda3b Fix error of clang-format and remove sudo in dev.yml 2021-12-08 11:36:59 +08:00
eeff 3b606a10b4 Add neu_datatag_alloc and neu_datatag_free 2021-12-03 17:30:55 +08:00
eeff 33cd14a117 Add hash table utils 2021-12-03 17:30:55 +08:00
Parker Liu 6360ef39f1 Add a traverse function for idhash table 2021-12-01 10:57:46 +08:00
eeff e417205727 Add log label to the logging facilities
1. Add a new label argument in log_log
  2. Add a set of interfaces to assist node name logging
2021-11-30 09:58:49 +08:00
lixiumei 6a824a6e8c API function text add JWT 2021-11-29 18:16:50 +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
fengzero fd07e7fd5c ft: modbus tcp read/write
modbus tcp server simulator
2021-11-29 12:17:33 +08:00
lixiumei 193e4abea5 Automatically generated code replace neu_json_tag 2021-11-11 22:03:31 +08:00
lixiumei d035272b31 The plugin headers are contained in the include directory 2021-11-04 10:57:41 +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
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
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
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
fengzero fb14067105 Add http response function
refactor handle response
2021-09-01 15:13:15 +08:00
Parker Liu c5681f6dfc Add sample code for get nodes/grp_configs/tagtable command
* Move source files of datatag table and tag group config to base
* Fix memleak when execute command of get nodes/grp_configs/tagtable
2021-08-20 15:48:24 +08:00
fengzero 5b2d7476ff set json encode JSON_REAL_PRECISION to 16
11.223 encode to 11.223, not 11.223000000001
2021-08-18 18:40:18 +08:00
Parker Liu 8d25825b61 cut out the project path from log file path 2021-08-13 21:57:36 +08:00
gc87 973e0b234f Simple implementation of variable serialize and deserialize and Use list instead of vector to implement task queue. 2021-08-13 17:12:25 +08:00
fengzero 3f85eeae95 Add unit tests for json encode 2021-08-13 15:01:20 +08:00
fengzero 64c35cda0b Add unit tests for json decode 2021-08-13 10:49:32 +08:00
fengzero e10dea4051 parse read/write 2021-08-12 15:59:14 +08:00
Parker Liu 91164074d0 Fix issue of failed build in macOS 2021-08-11 15:45:00 +08:00
fengzero afea66195f wrap json encode/decode 2021-08-09 11:21:57 +08:00
Parker Liu 7da6954f77 Improvement the datatag manager and name of plugin/adapter 2021-08-09 07:55:06 +08:00
alvin1221 958d2e5e6e Add function to get absolute path 2021-08-06 15:59:55 +08:00
fengzero dc693c2b84 fix compile warning and add json 2021-08-05 17:43:00 +08:00
Parker Liu 520130243d Change the config of clang-format for AlignAfterOpenBracket 2021-08-03 14:48:57 +08:00
alvin1221 f9493475e2 Redo data type for datatag_table. 2021-07-29 16:54:09 +08:00
alvin1221 9d9b33d73b Change NNI_ALLOC_STRUCT to NEU_ALLOC_STRUCT 2021-07-28 16:29:22 +08:00
alvin1221 7f20012acd Remove unused argument & Add C_FLAGS for CMakeLists.txt 2021-07-28 16:29:22 +08:00
alvin1221 02c36bccf4 Add idhash & mem_alloc to utils 2021-07-28 16:29:22 +08:00