minimal startup running

This commit is contained in:
2025-09-14 13:19:30 +02:00
parent b3cc313139
commit 4aa25c687b
7 changed files with 146 additions and 119 deletions

View File

@@ -16,10 +16,12 @@ use anyhow::{bail, Context};
use chrono::DateTime;
use core::result::Result::Ok;
use core::sync::atomic::AtomicBool;
use embassy_executor::Spawner;
use embassy_net::tcp::TcpSocket;
use embassy_net::{IpListenEndpoint, Stack};
use embassy_time::{Duration, Timer};
use esp_println::{print, println};
use esp_wifi::wifi::WifiController;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Debug)]
@@ -388,7 +390,8 @@ pub struct NightLampCommand {
// }
// }
pub async fn httpd(reboot_now: Arc<AtomicBool>, stack: Stack<'_>) {
#[embassy_executor::task]
pub async fn httpd(reboot_now: Arc<AtomicBool>, stack: Stack<'static>) {
let mut rx_buffer = [0; 1536];
let mut tx_buffer = [0; 1536];
println!("Stack {}", stack.is_config_up());