From 5be36a5df8e9612b727f9470c21863a76bb9a682 Mon Sep 17 00:00:00 2001 From: Hubald Verzijl Date: Wed, 10 Dec 2025 14:36:45 +0100 Subject: [PATCH] Added outflow sensor (I2C) and random setpoint noise. --- src/lib.rs | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1115c38..a88ca63 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,15 +11,18 @@ use defmt::Format; endpoints! { list = ENDPOINT_LIST; omit_std = true; - | EndpointTy | RequestTy | ResponseTy | Path | - | ---------- | --------- | ---------- | ---- | - | PingEndpoint | u32 | u32 | "ping" | - | GetUniqueIdEndpoint | () | [u8; 12] | "get_id" | - | StartDataEndpoint | () | () | "data/start" | - | StopDataEndpoint | () | bool | "data/stop" | - | SetAlgorithmEndpoint | SetAlgorithm | () | "algorithm/start" | - | PressureEndpoint | () | f32 | "data/pressure" | - | SetValvesEndpoint | SetValves | () | "valve/set" | + | EndpointTy | RequestTy | ResponseTy | Path | + | ---------- | --------- | ---------- | ---- | + | PingEndpoint | u32 | u32 | "ping" | + | GetUniqueIdEndpoint | () | [u8; 12] | "get_id" | + | StartDataEndpoint | () | () | "data/start" | + | StopDataEndpoint | () | bool | "data/stop" | + | SetAlgorithmEndpoint | SetAlgorithm | () | "algorithm/start" | + | SetSetpointEndpoint | f32 | () | "setpoint/set" | + | PressureEndpoint | () | f32 | "data/pressure" | + | OutFlowEndpoint | () | f32 | "data/out_flow" | + | SetpointPressureEndpoint | () | (f32, f32) | "data/setpoint_pressure" | + | SetValvesEndpoint | SetValves | () | "valve/set" | } topics! {