45 Commits

Author SHA1 Message Date
gc87 96992eff71 refactor(mqtt): Modify unreasonable code
* Modify header file ordering
* Modify mqtt.* to mqtt_*.* to avoid ide parsing exception
* Modify part of the code according to the pr revision comments
2022-07-15 13:51:02 +08:00
gc87 596cd699fd feat(mqtt): state json string send 2022-07-15 13:51:02 +08:00
gc87 1f9e3ea0db feat(mqtt): add node state cache & add hb command 2022-07-15 13:51:02 +08:00
gc87 41dec9b209 fix(mqtt): plog to mqtt 2022-06-17 18:46:30 +08:00
gc87 5e16738a23 fix(mqtt): double free and context leak 2022-06-17 17:57:14 +08:00
gc87 3ea1e02a14 refactor(mqtt): remove publish queue 2022-06-15 18:24:57 +08:00
gc87 6d878c6276 refactor(mqtt): new write response 2022-06-14 11:28:53 +08:00
gc87 61306faefd refactor(mqtt): new read data 2022-06-14 11:28:53 +08:00
gc87 36a16f1bb6 refactor(mqtt): trans-data upload 2022-06-14 11:28:53 +08:00
fengzero 203328dffd copyright 2020-2022 2022-06-10 04:43:06 +00:00
fengzero 38a2652930 remove vector and data_expr 2022-06-10 04:43:05 +00:00
fengzero 7d6e7c7a37 remove unused file 2022-06-10 04:43:05 +00:00
fengzero a7781b63ce log: replace log with zlog 2022-05-28 09:27:52 +00:00
gc87 b5f199ddbf refactor(mqtt): remove code of mqtt cmd 2022-04-26 16:24:10 +08:00
fengzero 5bc6b1f406 refactor(adapter): remove update name api 2022-04-15 09:36:40 +00:00
gc87 d7d8d33b5d feat(mqtt): add values-errors upload format 2022-04-15 17:12:36 +08:00
lixiumei 86c2c7d8ea Fix mqtt-write not working after tag_name error 2022-04-02 09:23:22 +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
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 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 9a2b6166e3 Add tty and schema interface implementation 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 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
eeff 32c289c5db Fix mqtt api to return response when request json decode fails 2021-12-28 14:43:10 +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
lixiumei d39111bf72 Automatically generated code replace neu_json_tag 2021-11-17 02:55:50 +00:00
lixiumei 66fc76d806 Automatically generated code replace neu_json_mqtt 2021-11-16 06:32:23 +00:00
lixiumei a28410539d Automatically generated code replace neu_json_rw 2021-11-16 01:44:19 +00:00
lixiumei c65bf3b35a Automatically generated code replace neu_json_group_config 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