Update build tools to use new espflash version.
This commit is contained in:
parent
6786acdebc
commit
63c64238a9
@ -4,7 +4,7 @@ target = "xtensa-esp32-espidf"
|
||||
[target.xtensa-esp32-espidf]
|
||||
linker = "ldproxy"
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
|
@ -48,9 +48,12 @@ fn main() -> Result<(), EspError> {
|
||||
wifi.set_configuration(&Configuration::AccessPoint(ap_config))?;
|
||||
wifi.start()?;
|
||||
|
||||
let mac: [u8; 6] = [1, 1, 1, 1, 1, 1];
|
||||
wifi.ap_netif_mut().set_mac(&mac)?;
|
||||
|
||||
loop {
|
||||
println!("{:?}", wifi.is_up());
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
println!("{:#?}", wifi.get_capabilities()?);
|
||||
std::thread::sleep(std::time::Duration::from_millis(10_000));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user