increase main task stack size and mqtt buffer size

This commit is contained in:
Evan Feenstra
2022-06-16 13:36:25 -07:00
parent d67f574c9d
commit 60f55d7fa5
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
# Rust often needs a bit of an extra main task stack size compared to C (the default is 3K) # Rust often needs a bit of an extra main task stack size compared to C (the default is 3K)
CONFIG_ESP_MAIN_TASK_STACK_SIZE=13000 CONFIG_ESP_MAIN_TASK_STACK_SIZE=24000
# Use this to set FreeRTOS kernel tick frequency to 1000 Hz (100 Hz by default). # Use this to set FreeRTOS kernel tick frequency to 1000 Hz (100 Hz by default).
# This allows to use 1 ms granuality for thread sleeps (10 ms by default). # This allows to use 1 ms granuality for thread sleeps (10 ms by default).

View File

@@ -28,7 +28,7 @@ pub fn make_client(
log::info!("make_client with id {}", client_id); log::info!("make_client with id {}", client_id);
let conf = MqttClientConfiguration { let conf = MqttClientConfiguration {
client_id: Some(client_id), client_id: Some(client_id),
buffer_size: 2048, buffer_size: 4096,
task_stack: 12288, task_stack: 12288,
username: Some(USERNAME), username: Some(USERNAME),
password: Some(PASSWORD), password: Some(PASSWORD),