feat: implement sensor calibration flow

This commit is contained in:
2026-05-21 16:19:43 +02:00
parent acbba735a0
commit cf3019f484
9 changed files with 1370 additions and 8 deletions
@@ -78,6 +78,12 @@ class RealtimeDataClient {
.map((msg) => (event: msg.event.value, payload: msg.payload ?? const {}));
}
/// Leaves [topic] and removes it from the channel cache.
void leaveChannel(String topic) {
final ch = _channels.remove(topic);
ch?.leave();
}
/// Pushes [event] on [topic] and waits for the server reply.
/// The channel must have been joined first via [channel].
Future<Map<String, dynamic>> push(