@@ -24,14 +24,14 @@ use esp_box_ui::{
2424
2525// peripherals imports
2626use hal:: {
27- clock:: { ClockControl , CpuClock , Clocks } ,
27+ clock:: { ClockControl , CpuClock } ,
2828 i2c:: I2C ,
2929 spi:: {
3030 master:: Spi ,
3131 SpiMode
3232 } ,
3333 gpio:: { Event , GpioPin , Input , PullUp } ,
34- peripherals:: { Peripherals , Interrupt , I2C0 , I2C1 } ,
34+ peripherals:: { Peripherals , Interrupt , I2C0 } ,
3535 prelude:: { _fugit_RateExtU32, * } ,
3636 timer:: TimerGroup ,
3737 Rng , IO , Delay ,
@@ -58,7 +58,7 @@ use rust_mqtt::{
5858} ;
5959
6060// tls imports
61- use esp_mbedtls:: { asynch:: { Session , AsyncConnectedSession } , set_debug, Mode , TlsVersion } ;
61+ use esp_mbedtls:: { asynch:: Session , set_debug, Mode , TlsVersion } ;
6262use esp_mbedtls:: { Certificates , X509 } ;
6363
6464use bme680:: * ;
@@ -247,7 +247,7 @@ async fn main(spawner: Spawner) {
247247
248248 let mut socket = TcpSocket :: new ( & stack, & mut rx_buffer, & mut tx_buffer) ;
249249
250- socket. set_timeout ( Some ( embassy_time:: Duration :: from_secs ( 31 ) ) ) ;
250+ socket. set_timeout ( Some ( embassy_time:: Duration :: from_secs ( 60 ) ) ) ;
251251
252252 let address = match stack
253253 . dns_query ( ENDPOINT , DnsQueryType :: A )
@@ -545,7 +545,7 @@ async fn main(spawner: Spawner) {
545545 } ,
546546 }
547547
548- sleep ( 30000 ) . await ;
548+ sleep ( 59000 ) . await ;
549549 }
550550 }
551551}
@@ -647,7 +647,7 @@ async fn touch_controller_task(mut touch_controller: TT21100<I2C<'static, I2C0>,
647647 }
648648 }
649649 } ,
650- tt21100_async:: Event :: Touch { report, touches } => {
650+ tt21100_async:: Event :: Touch { report : _ , touches } => {
651651 if let Some ( touch) = touches. 0 {
652652
653653 let max_x = 320 ;
0 commit comments