Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 30, 2023
1 parent f442429 commit 5542df9
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ libm = "0.2.7"
cfg-if = "1.0.0"

embassy-net = { version = "0.2.0", features = ["nightly", "tcp", "udp", "dhcpv4", "medium-ethernet"] }
bleps = { git = "https://github.com/bjoernQ/bleps", package = "bleps", rev = "b82f1e7009bef7e32f0918be5b186188aa5e7109", features = ["macros"] }
bleps = { git = "https://github.com/bjoernQ/bleps", package = "bleps", rev = "60b3881", features = ["macros"] }
embassy-executor = { version = "0.3.0", package = "embassy-executor", features = ["nightly", "executor-thread", "integrated-timers"] }
embassy-time = { version = "0.1.3", features = ["nightly"] }
futures-util = { version = "0.3.28", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion esp-wifi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ embedded-svc = { workspace = true, optional = true }
enumset = { workspace = true, optional = true }
linked_list_allocator = { workspace = true }
embedded-io.workspace = true
embedded-io-async = { workspace = true, optional = true }
fugit.workspace = true
heapless = { workspace = true, default-features = false }
num-derive = { workspace = true, features = ["full-syntax"] }
Expand Down Expand Up @@ -48,7 +49,7 @@ esp32s3 = [ "esp32s3-hal", "esp-wifi-sys/esp32s3" ]
async = [
"dep:embassy-sync",
"dep:embassy-futures",
"embedded-io/async",
"embedded-io-async",
"esp32c3-hal?/embassy",
"esp32c2-hal?/embassy",
"esp32c6-hal?/embassy",
Expand Down
7 changes: 2 additions & 5 deletions esp-wifi/src/ble/controller/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use embedded_io::{
blocking::{Read, Write},
Error, Io,
};
use embedded_io::{Error, ErrorType, Read, Write};

use crate::hal::{
peripheral::{Peripheral, PeripheralRef},
Expand Down Expand Up @@ -45,7 +42,7 @@ impl Error for BleConnectorError {
}
}

impl Io for BleConnector<'_> {
impl ErrorType for BleConnector<'_> {
type Error = BleConnectorError;
}

Expand Down
6 changes: 3 additions & 3 deletions esp-wifi/src/wifi_interface.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::cell::RefCell;
use core::fmt::Display;
use embedded_io::blocking::{Read, Write};
use embedded_io::Io;
use embedded_io::ErrorType;
use embedded_io::{Read, Write};

use embedded_svc::ipv4;
use smoltcp::iface::{Interface, SocketHandle, SocketSet};
Expand Down Expand Up @@ -612,7 +612,7 @@ impl embedded_io::Error for IoError {
}
}

impl<'s, 'n: 's> Io for Socket<'s, 'n> {
impl<'s, 'n: 's> ErrorType for Socket<'s, 'n> {
type Error = IoError;
}

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/coex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use esp_wifi::{
EspWifiInitFor,
};

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/coex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use esp_wifi::{
EspWifiInitFor,
};

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s3/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s3/examples/coex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use esp_wifi::{
EspWifiInitFor,
};

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s3/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s3/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mod examples_util;
use examples_util::hal;

use embedded_io::blocking::*;
use embedded_io::*;
use embedded_svc::ipv4::Interface;
use embedded_svc::wifi::{AccessPointInfo, ClientConfiguration, Configuration, Wifi};

Expand Down

0 comments on commit 5542df9

Please sign in to comment.