From b825abab388956991938ee83cc0edeb6e37e6b9b Mon Sep 17 00:00:00 2001 From: AimDB GEO automation Date: Wed, 25 Nov 2026 06:22:46 +0000 Subject: [PATCH] docs(examples): link shared sensor walkthrough and correct host test command --- examples/mqtt-connector-demo-common/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/mqtt-connector-demo-common/README.md b/examples/mqtt-connector-demo-common/README.md index 5555f853..90145c25 100644 --- a/examples/mqtt-connector-demo-common/README.md +++ b/examples/mqtt-connector-demo-common/README.md @@ -2,6 +2,8 @@ Shared business logic for MQTT connector demos that runs identically on **MCU, edge, and cloud**. +For the STM32 and Linux walkthrough, including the host contract test and Cortex-M build command, see [Sharing a sensor reading across Embassy and Tokio](https://aimdb.dev/blog/building-aimdb-one-async-api). + ## Overview This crate demonstrates AimDB's core strength: **write once, run anywhere**. @@ -33,7 +35,7 @@ The same monitor functions, data types, and business logic work across all platf ## Contents -- **Contracts** (`types`): `Temperature`, `TemperatureCommand`, `ButtonPress`. Their wire format is JSON through `#[derive(Linkable)]` on every target, `no_std + alloc` included. `catalog!` lists them, and `cargo test` checks their wire shapes against the committed `aimdb.lock` (`AIMDB_UPDATE_LOCK=1 cargo test` to accept a new contract or version). +- **Contracts** (`types`): `Temperature`, `TemperatureCommand`, `ButtonPress`. Their wire format is JSON through `#[derive(Linkable)]` on every target, `no_std + alloc` included. `catalog!` lists them, and `cargo test -p mqtt-connector-demo-common --features std` checks their wire shapes against the committed `aimdb.lock` (`AIMDB_UPDATE_LOCK=1 cargo test -p mqtt-connector-demo-common --features std` to accept a new contract or version). - **Keys** (`keys`): `SensorKey`, `CommandKey`, each with its MQTT topic in `#[link_address]`. - **Simulated thermometers** (`sim`): `SimThermometers` hands out one owned channel per sensor; `Thermometer::on(channel)` is an input for every record type built `From`. - **Monitors** (`monitors`): `temperature_logger`, `command_consumer`.