add readmes and cmd-cli
This commit is contained in:
parent
17a8e573c0
commit
6b7a10f532
11 changed files with 502 additions and 5 deletions
|
@ -3,8 +3,9 @@
|
|||
Read temperature values and write them to an MQTT topic.
|
||||
|
||||
The Raspberry Pi Pico is well supported by [embassy](https://embassy.dev), apart
|
||||
from the bluetooth stack (for [legal]() reasons). As we do not use bluetooth for
|
||||
communication we can ignore that.
|
||||
from the bluetooth stack (_2024/11/18:
|
||||
[might not be true anymore](https://github.com/embassy-rs/embassy/blob/main/examples/rp/src/bin/bluetooth.rs)_).
|
||||
As we do not use bluetooth for communication we can ignore that.
|
||||
|
||||
## Flashing
|
||||
|
||||
|
@ -107,4 +108,3 @@ All configuration is read on startup of the microcontroller.
|
|||
## Outlook
|
||||
|
||||
- Pull the flash/config handling into separate library for testability
|
||||
- Merge different ways of running tasks (join and tasks)
|
||||
|
|
|
@ -13,6 +13,7 @@ use embassy_executor::Spawner;
|
|||
use embassy_net::Stack;
|
||||
use embassy_time::Timer;
|
||||
use flash::{Config, FlashError};
|
||||
use mqtt_protocol::publish::MAX_TOPIC_LENGTH;
|
||||
use static_cell::StaticCell;
|
||||
use temperature::{temperature_task, Temperature};
|
||||
use usb_serial::{init_usb, usb_task};
|
||||
|
|
|
@ -35,7 +35,7 @@ async fn net_task(stack: &'static Stack<cyw43::NetDriver<'static>>) -> ! {
|
|||
|
||||
static STATE: StaticCell<State> = StaticCell::new();
|
||||
static STACK: StaticCell<Stack<cyw43::NetDriver<'static>>> = StaticCell::new();
|
||||
const STACK_RESOURCES_COUNT: usize = 2;
|
||||
const STACK_RESOURCES_COUNT: usize = 5;
|
||||
static STACK_RESOURCES: StaticCell<StackResources<STACK_RESOURCES_COUNT>> = StaticCell::new();
|
||||
|
||||
// Initialise the wwifi chip of the RP2040 and return the control interface as well as the network
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue