Change client network port

This commit is contained in:
Ollo 2023-08-15 13:25:07 +02:00
parent 823b3be52c
commit a5e7848e11

View File

@ -238,7 +238,7 @@ fn send_package(ipaddress: String, data: &Option<Result<Forecast, String>>) {
package[1..PACKAGE_LENGTH].copy_from_slice(&display.image); package[1..PACKAGE_LENGTH].copy_from_slice(&display.image);
let socket = UdpSocket::bind("0.0.0.0:4242").expect("couldn't bind to address"); let socket = UdpSocket::bind("0.0.0.0:14242").expect("couldn't bind to address");
socket socket
.send_to(&package, ipaddress + ":4242") .send_to(&package, ipaddress + ":4242")
.expect("couldn't send data"); .expect("couldn't send data");