Skip to content

Commit 749a0cc

Browse files
authored
Recommend using cfg.toml instead of big-heap (#22)
1 parent fcc50ea commit 749a0cc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ embassy-net = { version = "0.2.1", features = [
4545
], optional = true }
4646

4747
esp-wifi = { git = "https://github.com/esp-rs/esp-wifi.git", features = [
48-
"big-heap",
4948
"phy-enable-usb",
5049
"embedded-svc",
5150
"wifi",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It comes with mbedtls precompiled to avoid the need for a complete C toolchain.
88

99
This should work together with `esp-wifi`. It currently won't work without. However it's not well tested yet besides the included examples.
1010

11-
See the examples for how to use it. A key thing is to enable the feature `big-heap` in esp-wifi since more heap memory is needed to get this working.
11+
See the examples for how to use it. A key thing is to [set a bigger heap size](https://github.com/esp-rs/esp-wifi/blob/main/esp-wifi/docs/tuning.md) for esp-wifi since more heap memory is needed to get this working.
1212

1313
In general this is heavy in terms of heap memory used and code size. If you can, you should prefer using something like `embedded-tls`.
1414

cfg.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[esp-wifi]
2+
heap_size = 112640 # use 110k by default
3+
# heap_size = 73728 # uncomment this to use 72k for esp32-s2/c2

0 commit comments

Comments
 (0)