mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
Merge pull request #2255 from badrbouslikhin/main
stm32/h7: fix h7 examples
This commit is contained in:
commit
7703f47c1e
@ -92,7 +92,7 @@ async fn main(spawner: Spawner) -> ! {
|
||||
let stack = &*make_static!(Stack::new(
|
||||
device,
|
||||
config,
|
||||
make_static!(StackResources::<2>::new()),
|
||||
make_static!(StackResources::<3>::new()),
|
||||
seed
|
||||
));
|
||||
|
||||
@ -113,6 +113,7 @@ async fn main(spawner: Spawner) -> ! {
|
||||
|
||||
socket.set_timeout(Some(embassy_time::Duration::from_secs(10)));
|
||||
|
||||
// You need to start a server on the host machine, for example: `nc -l 8000`
|
||||
let remote_endpoint = (Ipv4Address::new(10, 42, 0, 1), 8000);
|
||||
info!("connecting...");
|
||||
let r = socket.connect(remote_endpoint).await;
|
||||
|
@ -93,7 +93,7 @@ async fn main(spawner: Spawner) -> ! {
|
||||
let stack = &*make_static!(Stack::new(
|
||||
device,
|
||||
config,
|
||||
make_static!(StackResources::<2>::new()),
|
||||
make_static!(StackResources::<3>::new()),
|
||||
seed
|
||||
));
|
||||
|
||||
@ -109,6 +109,7 @@ async fn main(spawner: Spawner) -> ! {
|
||||
let client = TcpClient::new(&stack, &state);
|
||||
|
||||
loop {
|
||||
// You need to start a server on the host machine, for example: `nc -l 8000`
|
||||
let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(10, 42, 0, 1), 8000));
|
||||
|
||||
info!("connecting...");
|
||||
|
Loading…
Reference in New Issue
Block a user