Commit Graph

198 Commits

Author SHA1 Message Date
eeff d837ca94bf Fix use-after-free in mqtt api GET_SUBSCRIBE_GROUP_CONFIG 2021-12-14 17:40:58 +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 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
lixiumei 654ba660d2 Adding functional tests for opcua RW 2021-12-09 19:07:26 +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
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 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
lixiumei 373aa2f167 Improve modbus tcp function test 2021-12-06 14:34:23 +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 b2aaa88f92 Fix mqtt plugin to call neu_dvalue_get_bit for NEU_DTYPE_BIT 2021-12-02 23:01:08 +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
gc87 cff79b9e42 Refactored some MQTT command processing functions
1. Group config
2. Data tag
3. Read and write
2021-11-30 16:34:44 +08:00
gc87 ec939bd9ed Fix OPCUA failed to read data
Because the index is not increased correctly, a single data point reading failure causes all data assignment errors
2021-11-30 16:34:44 +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
Parker Liu ae131c4da6 Fix building error in tcp_server/neu_plugin_common.c for macOS 2021-11-29 18:49:24 +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
Parker Liu 3d4d6daf45 Fix issue of UAF of group config in node when exiting main process 2021-11-26 23:17:09 +08:00
gc87 906b9c053c Add subscription management interface in mqtt
- Modify the existing interface naming of group config
2021-11-26 15:17:48 +08:00
gc87 0b7e87fa5d Remote interface for plugin management 2021-11-26 15:17:48 +08:00
gc87 1fc10aeca8 Add ping-pong interface to MQTT 2021-11-26 11:08:48 +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 6a7297cc5a ft: Add node state/ctl case 2021-11-24 18:03:04 +08:00
fengzero 8893ffbb19 refactor node state and ctl(start/stop)
plugin add start/stop interface

open: init plugin struct
init: initialize other context
start: plugin start workflow
2021-11-24 16:28:05 +08:00
fengzero f839095692 api: node supports updating name 2021-11-24 14:49:21 +08:00
fengzero 3ed6f842ec refactor http error response
use the state of the adapter as the running state of the plugin
2021-11-24 14:49:21 +08:00
Parker Liu 6a1f182e46 Fix issue of system hung on restart a node 2021-11-23 16:30:25 +08:00
Parker Liu be83f83101 Send a exit message to a node that should be stoped 2021-11-23 12:14:53 +08:00
Parker Liu 72d0adf8d9 Add error processing for function dashb_plugin_open 2021-11-19 16:34:28 +08:00
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +08:00
Parker Liu 6c6f025dfe Merge branch 'lixiumei123-main' into main 2021-11-17 19:17:43 +08:00
alvin1221 616d2cebc2 format plugin_sample_app.c 2021-11-17 14:45:39 +08:00
lixiumei d39111bf72 Automatically generated code replace neu_json_tag 2021-11-17 02:55:50 +00:00
alvin1221 7d5522630d Support cross compile & Fix incompatible errors 2021-11-16 22:28:12 +08:00
lixiumei af565723a9 Automatically generated code replace neu_json_mqtt 2021-11-16 15:53:31 +08:00
lixiumei a4c60f6428 Automatically generated code replace neu_json_error 2021-11-16 15:53:31 +08:00
lixiumei 6cb85c6516 Automatically generated code replace neu_json_rw 2021-11-16 15:53:31 +08:00
lixiumei 66fc76d806 Automatically generated code replace neu_json_mqtt 2021-11-16 06:32:23 +00:00
lixiumei 2a6b9a8904 Automatically generated code replace neu_json_error 2021-11-16 02:30:51 +00:00