Commit Graph

88 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
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
eeff d343caf914 Fix mqtt plugin datatag command 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
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
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
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 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 6c6f025dfe Merge branch 'lixiumei123-main' into main 2021-11-17 19:17:43 +08:00
lixiumei d39111bf72 Automatically generated code replace neu_json_tag 2021-11-17 02:55:50 +00: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
lixiumei a28410539d Automatically generated code replace neu_json_rw 2021-11-16 01:44:19 +00:00
lixiumei 4a8ab3d3cd Extracting neu_json_error from neu_json_fn 2021-11-15 18:20:52 +08: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 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 bbbdb3007c Reorganize the source code of the mqtt command 2021-11-09 17:27:43 +08:00
gc87 f28bdb8270 Refactor the MQTT driver
- Add default initialization of variables
- Rename source file
2021-11-08 15:16:04 +08:00
lixiumei d035272b31 The plugin headers are contained in the include directory 2021-11-04 10:57:41 +08:00
gc87 7e18d25d20 Modify the compilation configuration
Use libneuron-base in plugins
2021-11-02 18:07:49 +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
gc87 569d008fe3 Fix most memory problems of opcua driver
- And mqtt driver
2021-10-29 14:23:53 +08:00
gc87 da3746d135 Fix the timing problem of request context
- Thread lock handling for running status flags
2021-10-28 16:47:50 +08:00
gc87 dc018ca805 Fix some memory leaks about mqtt driver 2021-10-28 09:57:29 +08:00
gc87 f3e877c1b2 Move MQTT command source files to the command dir 2021-10-26 10:14:30 +08:00
gc87 980bc65f2b MQTT tcp:// connection via Openssl BIO 2021-10-26 10:14:30 +08:00
gc87 5bdf4a2802 Remove paho.mqtt.c client 2021-10-20 15:46:25 +08:00
gc87 b5a33bb128 Add the implementation of mqtt-c client
- Add README
- Add context list to store request response context
2021-10-20 15:46:25 +08:00
gc87 25bbff646e Fix mqtt command 2021-10-19 16:38:42 +08:00
fengzero 5ba8e31494 fix the occasional crash of the read and write api
add api handle ctx to the list before sending cmd
2021-10-19 14:38:29 +08:00
fengzero 96940eb3be add read/write api
support bit/int16/uint16/int32/uint32/float
2021-10-18 14:53:24 +08:00
fengzero 60989fb4a3 del context in msg 2021-10-15 03:17:47 +00:00
fengzero 241d67f8e0 fix clang-format 2021-10-15 02:54:32 +00:00
fengzero e41594f6c1 api server: support CORS 2021-10-15 02:28:39 +00:00
gc87 90721f520d Add mqtt command interface about adapter 2021-10-14 17:00:11 +08:00
gc87 0acbf3e34c Remove message_handle.*
The code split in the file with the prefix command_
2021-10-14 17:00:11 +08:00