change ip to an allowable linksys DHCP subnet
This commit is contained in:
parent
b82c6dbed8
commit
02f6efaaa5
2 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ async fn main(spawner: Spawner) {
|
||||||
|
|
||||||
// Use a link-local address for communication without DHCP server
|
// Use a link-local address for communication without DHCP server
|
||||||
let config = Config::ipv4_static(embassy_net::StaticConfigV4 {
|
let config = Config::ipv4_static(embassy_net::StaticConfigV4 {
|
||||||
address: embassy_net::Ipv4Cidr::new(embassy_net::Ipv4Address::new(169, 254, 1, 1), 16),
|
address: embassy_net::Ipv4Cidr::new(embassy_net::Ipv4Address::new(192, 168, 1, 2), 16),
|
||||||
dns_servers: heapless::Vec::new(),
|
dns_servers: heapless::Vec::new(),
|
||||||
gateway: None,
|
gateway: None,
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,7 +46,7 @@ fn main() -> Result<()> {
|
||||||
//let latest_telem = Arc::new(RwLock::new(None));
|
//let latest_telem = Arc::new(RwLock::new(None));
|
||||||
|
|
||||||
let control = executor.block_on(async {
|
let control = executor.block_on(async {
|
||||||
let cruisecontrol = TcpStream::connect("169.254.1.1:1234").await?;
|
let cruisecontrol = TcpStream::connect("192.168.1.2:1234").await?;
|
||||||
println!("connected");
|
println!("connected");
|
||||||
cruisecontrol.set_nodelay(true)?;
|
cruisecontrol.set_nodelay(true)?;
|
||||||
let (telem, control) = cruisecontrol.into_split();
|
let (telem, control) = cruisecontrol.into_split();
|
||||||
|
|
Loading…
Reference in a new issue