Commit Graph

69 Commits

Author SHA1 Message Date
gc87 cee79bec66 Improve mqtt connection status judgment 2022-04-08 17:08:10 +08:00
fengzero 82e061da4d move header to include/neuron 2022-04-07 08:44:04 +00:00
lixiumei 86c2c7d8ea Fix mqtt-write not working after tag_name error 2022-04-02 09:23:22 +00:00
fengzero 55d0aa0001 fix write tag crash 2022-04-02 08:45:26 +00:00
fengzero 8ff2913669 write api: modified to write one value at a time 2022-04-02 05:21:04 +00:00
gc87 872620001c Delete the command field in read and write json 2022-04-01 17:37:26 +08:00
fengzero 45240126c9 In write msg, set the exact tag type 2022-04-01 08:40:18 +00:00
fengzero 11c104540b delete node id in upload msg, the error in read resp is modified to an optional field 2022-04-01 06:44:35 +00:00
fengzero b62e1a3fef replace tag id with tag name in write request 2022-04-01 06:15:39 +00:00
fengzero cab9712850 replace node id with node name in write request 2022-04-01 03:43:17 +00:00
fengzero 00a9a14de2 replace node id with node name in read request 2022-04-01 03:19:03 +00:00
lixiumei e9c80f1b1c Replace tag_id with tag_name in the read api 2022-03-31 11:18:00 +00:00
fengzero 39f9e0697d remove mem_alloc.h 2022-03-31 08:10:55 +00:00
gc87 49542bdfe0 Add a topic dedicated to periodic uploads 2022-03-29 18:04:14 +08:00
gc87 4caf9bfdda [#339]Fixed crash when calling ttys via mqtt
Resolves #339
2022-03-21 15:17:11 +08:00
gc87 2eff71d508 Add node name of sender in trans_data msg 2022-03-04 14:00:03 +08:00
gc87 c01225dcda Fix leak 2022-03-04 11:40:12 +08:00
gc87 52b0020ee0 Modify the format of periodic upload data 2022-03-04 10:55:46 +08:00
gc87 c06f6e2201 Refactoring the read and write interface 2022-03-04 10:55:46 +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
gc87 9a2b6166e3 Add tty and schema interface implementation 2022-02-14 10:13:31 +08:00
gc87 21a22f7807 Delete all function codes of the MQTT API 2022-02-14 10:13:31 +08:00
gc87 ab3a12c4d5 Add command field to MQTT request response data
- Modify the test script of ft
- Fix parameter error in setting command
- Fix json_mqtt_t instance not released
2022-02-14 10:13:31 +08:00
gc87 97744161ec Refactoring command processing
- Cleanup plugin_mqtt.c
2022-02-14 10:13:31 +08:00
gc87 ecd8d846fc Fix write's topic error
- Function tests all passed without removing function code.
2022-02-14 10:13:31 +08:00
gc87 80becc2b9c Complete the basic request response function
for new topics
2022-02-14 10:13:31 +08:00
gc87 55d69f136b Use of channels to process requests 2022-02-14 10:13:31 +08:00
fengzero 75474e3def error codes classify 2022-02-11 11:54:13 +08:00
fengzero 84accdf861 Delete the first errorcode in the read/write result 2022-02-11 11:54:13 +08:00
gc87 320eb6ab87 Fix mqtt write return value type error
Int32 -> errorcode
2022-01-24 18:21:01 +08:00
eeff a640fd3e39 Update mqtt plugin to notify tags add/del/update events 2022-01-21 18:58:34 +08:00
eeff 967a7a309d Fix mqtt plugin del tags command error handling 2022-01-19 17:35:55 +08:00
eeff b694cdfc87 Fix mqtt plugin add tags command error handling 2022-01-19 17:35:55 +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
Parker Liu d1d251bc4f Add group config into node after all ids added into group config 2022-01-11 12:30:35 +08:00
fengzero ca37d290a8 mqtt group clone 2022-01-11 12:13:52 +08:00
Parker Liu d8e9ac3687 Fix use after free issue when mqtt plugin write data to driver 2021-12-31 17:23:23 +08:00
eeff 32c289c5db Fix mqtt api to return response when request json decode fails 2021-12-28 14:43:10 +08:00
eeff 81d7838656 Fix mqtt api NEU_MQTT_OP_GET_NODES error handling
1. When node type is NEU_NODE_TYPE_UNKNOWN, success vacuously
  2. When node type is invalid, return NEU_ERR_PARAM_IS_WRONG
2021-12-27 22:51:01 +08:00
eeff daee5c2592 Fix mqtt api read function
Fix mqtt plugin to check error code when handling NEU_MQTT_OP_READ,
  so that the plugin could send back an error message.
2021-12-27 22:33:14 +08:00
eeff f41559bd73 Fix mqtt api get node setting
Fix handling of NEU_MQTT_OP_GET_NODE_SETTING to return the setting.
2021-12-22 18:59:27 +08:00
eeff d837ca94bf Fix use-after-free in mqtt api GET_SUBSCRIBE_GROUP_CONFIG 2021-12-14 17:40:58 +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
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