Update build tools to use new espflash version.

This commit is contained in:
Luke Else 2023-07-12 19:34:54 +01:00
parent 6786acdebc
commit 63c64238a9
2 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@ target = "xtensa-esp32-espidf"
[target.xtensa-esp32-espidf] [target.xtensa-esp32-espidf]
linker = "ldproxy" linker = "ldproxy"
# runner = "espflash --monitor" # Select this runner for espflash v1.x.x # runner = "espflash --monitor" # Select this runner for espflash v1.x.x
runner = "espflash com5 --monitor" # Select this runner for espflash v2.x.x runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x

View File

@ -48,9 +48,12 @@ fn main() -> Result<(), EspError> {
wifi.set_configuration(&Configuration::AccessPoint(ap_config))?; wifi.set_configuration(&Configuration::AccessPoint(ap_config))?;
wifi.start()?; wifi.start()?;
let mac: [u8; 6] = [1, 1, 1, 1, 1, 1];
wifi.ap_netif_mut().set_mac(&mac)?;
loop { loop {
println!("{:?}", wifi.is_up()); println!("{:#?}", wifi.get_capabilities()?);
std::thread::sleep(std::time::Duration::from_millis(100)); std::thread::sleep(std::time::Duration::from_millis(10_000));
} }
} }