Skip to content

Commit 6ea9573

Browse files
committed
feat: add build command for remote-access-demo in Makefile and update config producer in server
1 parent 19d4457 commit 6ea9573

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ examples:
295295
cargo build --package weather-station-beta
296296
@printf "$(YELLOW) → Building weather-station-gamma (embedded, embassy runtime)$(NC)\n"
297297
cargo build --package weather-station-gamma --target thumbv7em-none-eabihf
298+
@printf "$(YELLOW) → Building remote-access-demo (AimX server + client)$(NC)\n"
299+
cargo build --package remote-access-demo
298300
@printf "$(YELLOW) → Building hello-mailbox (sync)$(NC)\n"
299301
cargo build --package hello-mailbox
300302
@printf "$(YELLOW) → Building hello-single-latest-async$(NC)\n"

examples/remote-access-demo/src/server.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
149149
info!("📝 Populating initial record data...");
150150

151151
let config_producer = db.producer::<Config>("server::Config")?;
152-
config_producer
153-
.produce(Config {
154-
app_name: "AimDB Demo".to_string(),
155-
version: "0.1.0".to_string(),
156-
debug_mode: true,
157-
})
158-
.await?;
152+
config_producer.produce(Config {
153+
app_name: "AimDB Demo".to_string(),
154+
version: "0.1.0".to_string(),
155+
debug_mode: true,
156+
});
159157

160158
// Initialize AppSettings WITHOUT creating a producer
161159
// This makes it writable via remote access (record.set)

0 commit comments

Comments
 (0)