Skip to content

Commit 5404a34

Browse files
authored
Clarify default values for max_send_queue
Reformatted the default values for max_send_queue for clarity. Add nRF52 platform
1 parent 6049ed7 commit 5404a34

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/components/api.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ api:
5858
> The defaults are set to balance memory usage with allowing multiple simultaneous connections.
5959

6060
- **max_send_queue** (*Optional*, int): The maximum number of messages that can be queued for sending per connection before the connection is dropped. Must be between 1 and 64.
61-
Defaults to `5` for ESP8266/RP2040, `8` for ESP32/BK72xx/RTL87xx/LN882x, `16` for host platform. This prevents memory exhaustion when a client is slow or network-stalled.
61+
Defaults to:
62+
- `5` for ESP8266/RP2040,
63+
- `8` for ESP32/BK72xx/LN882x/nRF52/RTL87xx,
64+
- `16` for host platform.
65+
66+
This prevents memory exhaustion when a client is slow or network-stalled.
6267
Each queued message uses approximately 8-12 bytes of overhead plus the message size.
6368

6469
> [!NOTE]

0 commit comments

Comments
 (0)