Commit Graph

432 Commits

Author SHA1 Message Date
zhanghongtong 5907ee1c5a ci: fix upload release asset failed 2.0.0-alpha.1 2021-12-15 17:46:19 +08:00
zhanghongtong 4301e15ba6 ci: fix upload release asset failed 2021-12-15 17:18:50 +08:00
zhanghongtong 6236845c64 ci: fix upload release asset failed 2021-12-15 16:52:37 +08:00
eeff d837ca94bf Fix use-after-free in mqtt api GET_SUBSCRIBE_GROUP_CONFIG 2021-12-14 17:40:58 +08:00
zhanghongtong 1c0de36b62 ci: update release asset 2021-12-14 17:38:46 +08:00
lixiumei 311ae9f674 ft: format 2021-12-13 16:56:31 +08:00
lixiumei 2ec1640eaf Fixing the configuration in the opcua function test 2021-12-13 16:35:22 +08:00
zhanghongtong 446d034868 ci: don't delete artifact when release 2021-12-13 11:44:09 +08:00
gc87 5e69ec99f4 Set mqtt connection parameters through the web UI 2021-12-13 11:31:21 +08:00
gc87 4cfaf3fcd0 Use web UI to set OPC-UA connection parameters 2021-12-13 11:28:09 +08:00
Parker Liu 6de377cc29 Change the send/recv buffer size of mqttc client to 8192 2021-12-11 11:38:17 +08:00
gc87 572bd046cd MQTT-C client buffer size 2048->20480 2021-12-11 11:38:17 +08:00
Parker Liu 606356d6fd Fix issue of sometimes failed to read multiple points in the coil area
* The functional tester "Read multiple points in the coil area"
  sometimes fail, because there is a mistake when writing bit to coil area
  register. I fix this mistake.
2021-12-11 11:01:19 +08:00
Parker Liu f69610ed1e Fix issue of failed write bool and uint8 to opc ua device
* The opc ua plugin hasn't support bool and byte type value, add bool
  and byte type value in function write_request_vector_generate in
  opcua_handle.c file.
* The simulator of opc ua device lack of uint8 type data in register
  area, add uint8 type data in it.
* The function tester of opc ua has a mistake that write a string to a
  bool type value with json, repace it by bool value.
2021-12-10 18:46:00 +08:00
zhanghongtong 0b5dfc17b0 ci: delete artifact when action scuuessfully 2021-12-10 11:43:58 +08:00
lixiumei 268e6b568b Fix auto-code generation header file with #include json/json.h 2021-12-09 19:07:26 +08:00
lixiumei 654ba660d2 Adding functional tests for opcua RW 2021-12-09 19:07:26 +08:00
Parker Liu 4c1e2e20a2 Move unit test step to test_neuron job in github dev workflow 2021-12-09 15:11:44 +08:00
Parker Liu 8b78fef7db Fix issue of failed building arm32/arm64 target for simulator 2021-12-09 14:05:53 +08:00
eeff d720015c59 Fix opcua plugin handler opcua_handle_unsubscribe to check NULL pointer 2021-12-09 11:23:28 +08:00
Parker Liu 5f3d5025d6 Change default build type to release mode for compile job 2021-12-09 10:21:49 +08:00
Parker Liu f176c31d08 Modify jansson_DIR and JANSSON_INCLUDE_DIRS for build libjwt 2021-12-08 18:59:04 +08:00
Parker Liu 937bfc90e4 Remove call install-libs.sh script in dockerfile
The base docker image had already install dependent libraries, so we remove
the statement of calling install-libs.sh in dockerfile
2021-12-08 17:42:05 +08:00
Parker Liu cdded3916f Disable build shared library for libjwt 2021-12-08 16:53:09 +08:00
eeff 476317cfcc Fix node API functionality test
1. Fix test for GET unknown node type
  1. Add test for GET invalid node type
2021-12-08 14:39:33 +08:00
eeff 07b0e4f1ae Add unit tests for http_get_param 2021-12-08 14:39:33 +08:00
eeff 935b20eb40 Fix usage of http_get_param_int 2021-12-08 14:39:33 +08:00
eeff eb25ff64c1 Fix restful plugin http query parameter parsing.
Previously the function get_param used a static variable to store
  parsed data which is not re-entrant, and thus cause bugs.

  1. fix get_param and http_get_param to return pointer and len
  2. Remove http_get_param_int
  3. Add http_get_param_uintmax
  4. Add http_get_param_uint32
  5. add http_get_param_node_id
  6. add http_get_param_node_type
2021-12-08 14:39:33 +08:00
gc87 03f2ac2fa1 Add Device error code in opcua 2021-12-08 14:32:51 +08:00
Parker Liu 07d8e11a22 Enable -fPIC flag for build libjwt 2021-12-08 12:13:39 +08:00
Parker Liu 2e889bda3b Fix error of clang-format and remove sudo in dev.yml 2021-12-08 11:36:59 +08:00
Parker Liu 80337b6b30 Fix crash issue of setting config to opcua adapter 2021-12-07 14:59:38 +08:00
eeff 400e0f6934 Fix subscribe group config
This fix neu_manager to add the group config to the subscribing node
  when north app subscribe for group config.
2021-12-06 15:22:27 +08:00
lixiumei 373aa2f167 Improve modbus tcp function test 2021-12-06 14:34:23 +08:00
Parker Liu 1f5d56e2ba Fix memory leak of subscribing a group config 2021-12-03 18:23:35 +08:00
eeff d343caf914 Fix mqtt plugin datatag command 2021-12-03 17:30:55 +08:00
eeff a601c441d7 Fix restful plugin datatag handler 2021-12-03 17:30:55 +08:00
eeff a74e09bace Add NEU_ERR_TAG_NAME_EXIST error code 2021-12-03 17:30:55 +08:00
eeff 4b6e9acc1e Fix datatag name uniqueness checking 2021-12-03 17:30:55 +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
eeff e1567f1bff Fix datatag_table test cases 2021-12-03 17:30:55 +08:00
eeff 5a40a66ac1 Refactor: variable renamning
Rename neu_datatag_table to datatag_table
2021-12-03 17:30:55 +08:00
eeff b2aaa88f92 Fix mqtt plugin to call neu_dvalue_get_bit for NEU_DTYPE_BIT 2021-12-02 23:01:08 +08:00
Parker Liu b203d685b1 Fix issue of it can not get data after subcribe a group config 2021-12-02 19:08:31 +08:00
Parker Liu de2588fedc Add a function test for read input reg area as int16 2021-12-02 14:31:59 +08:00
lixiumei fe4896d319 Add login and logout function test 2021-12-02 14:17:01 +08:00
gc87 f4e5ef384c Fix opcua bool type parsing error
- And add other type support
2021-12-02 10:11:09 +08:00
lixiumei e477e8d184 Fix http error code 2021-12-01 16:59:02 +08:00
Parker Liu 6360ef39f1 Add a traverse function for idhash table 2021-12-01 10:57:46 +08:00