Skip to content

Commit 9c06c69

Browse files
authored
Touch up the migration guide for esp-wifi (#2561)
1 parent 4f6d51f commit 9c06c69

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

esp-wifi/MIGRATING-0.10.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ The following error enum variants have been removed from `InitializationError`:
1717
- `TimerUnavailable`
1818
- `RadioClockUnavailable`
1919

20+
```diff
21+
- let init: EspWifiInitialization = esp_wifi::init(EspWifiInitFor::Wifi, timg0.timer0, rng.clone(), peripherals.RADIO_CLK).unwrap();
22+
+ let init: EspWifiController = esp_wifi::init(timg0.timer0, rng.clone(), peripherals.RADIO_CLK).unwrap();
23+
```
24+
2025
## No need to include `rom_functions.x` manually
2126

2227
Don't include `rom_functions.x` from esp-wifi
@@ -82,3 +87,12 @@ The related features are removed from `esp-wifi`: wifi-default, ipv6, ipv4, tcp,
8287
In order to better comply with the Rust API Guidelines [getter names convention], we have removed the `get_` prefixes from all functions which previously had it. Due to the number of changes it's not practical to list all changes here, however if a function previous began with `get_`, you can simply remove this prefix.
8388

8489
[getter names convention]: https://rust-lang.github.io/api-guidelines/naming.html#c-getter
90+
91+
## Removal of features
92+
93+
Along with the features removed regarding the blocking network stack, the following features have been removed:
94+
95+
- `async` - Enabled by default
96+
- `phy-enable-usb` - Turned into a configuration option
97+
- `dump-packets` - Turned into a configuration option
98+
- `ps-min-modem` & `ps-max-modem` - Turned into a runtime configuration, see `set_power_saving`

0 commit comments

Comments
 (0)