Commit Graph

167 Commits

Author SHA1 Message Date
gc87 594b0b21ed Fix subscription list release order 2022-04-11 15:56:44 +08:00
gc87 669b6428de neu_list.h -> sys/queue.h 2022-04-10 11:51:31 +08:00
gc87 1b6c0c8f06 restore mqtt interface for passing ft 2022-04-08 18:04:02 +08:00
gc87 adc68f0525 Fix issue #405
Resolves #405
2022-04-08 17:08:10 +08:00
gc87 f858fa6304 mqtt client exits asynchronously 2022-04-08 17:08:10 +08:00
gc87 6bedae37e8 ssl connection to mqtt to set client keypair 2022-04-08 17:08:10 +08:00
gc87 a53a41a570 Disable part of the mqtt control interface 2022-04-08 17:08:10 +08:00
gc87 cee79bec66 Improve mqtt connection status judgment 2022-04-08 17:08:10 +08:00
gc87 11b0a6cbef Refactoring mqtt resource management
Resolves #394
Resolves #392
2022-04-08 17:08:10 +08:00
fengzero 82e061da4d move header to include/neuron 2022-04-07 08:44:04 +00:00
fengzeroz bb51aba809 Merge pull request #400 from gc87/try-fix-mqtt-connection
Fix publish stop caused by write timeout
2022-04-02 18:24:31 +08:00
lixiumei 86c2c7d8ea Fix mqtt-write not working after tag_name error 2022-04-02 09:23:22 +00:00
gc87 1793add5c5 Fix publish stop caused by write timeout
- Reduce the frequency of business trips when switching brokers
2022-04-02 17:22:36 +08: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 3ba4cde3e4 Update the CA of mqtt by uploading 2022-03-31 11:39:58 +08:00
fengzeroz 7abb20d0f6 Merge pull request #370 from gc87/upload-topic
Upload topic
2022-03-30 16:07:33 +08:00
fengzero 666ed3d42b modify command log level 2022-03-30 06:39:19 +00:00
gc87 49542bdfe0 Add a topic dedicated to periodic uploads 2022-03-29 18:04:14 +08:00
gc87 58ec93fb4b Fix memory corruption under armv7l
Resolves #365
2022-03-29 10:19:33 +08:00
gc87 64482dee27 MQTT plugin small refactoring
- rename
 - log_xx -> log_xx_node
 - add assert
2022-03-22 10:55:38 +08:00
gc87 27fcd1f771 [#319]Fix mqtt is not automatically connected
Resolves #319
2022-03-21 16:24:58 +08:00
fengzeroz 4314321247 Merge pull request #348 from gc87/bugfix-339
[#339]Fixed crash when calling ttys via mqtt
2022-03-21 15:41:35 +08:00
gc87 4caf9bfdda [#339]Fixed crash when calling ttys via mqtt
Resolves #339
2022-03-21 15:17:11 +08:00
gc87 16902ce510 [#320]Fixed crash when modifying mqtt settings
Resolves #320
2022-03-21 14:40:06 +08:00
fengzero 4be9539c6f rename module name 2022-03-17 10:46:16 +00:00
fengzero e83c4253ba optimize neuron running directory
neuron
  /config/neuron.yaml
  /config/public.pem
  /config/private.key
  /plugins/xxx.so
  /plugins/schema/xxx.json
2022-03-17 07:20:44 +00:00
fengzero d375e69ebf uninstall plugin 2022-03-17 02:14:05 +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
fengzero ecfab3e6b5 del the global schema, each driver maintains its own schema 2022-03-02 05:34:13 +00:00
gc87 41a30450a2 Fix mqtt crash after repeated subscription 2022-02-15 10:52:27 +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 37da3dd940 Change the topic list to a vector 2022-02-14 10:13:31 +08:00
gc87 52ec9e3cef Modify MQTT configuration items
- Remove req/resp theme settings
- Add client id settings
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 0eb0fe658e Make MQTT client id configurable 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