From 508fa69d3c8bb9550632421d29ad35724ef45fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Tue, 20 Oct 2026 12:31:56 +0000 Subject: [PATCH] Fix the number of session slots The LAN C (firmware R1.5.1) has 5 session slots; 3 is the gateway in a ComfoAir Flex (R1.2.1). Co-Authored-By: Claude Opus 5.5 --- docs/PROTOCOL.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md index 44506d6..496ce3b 100644 --- a/docs/PROTOCOL.md +++ b/docs/PROTOCOL.md @@ -211,9 +211,10 @@ A UUID that isn't registered is answered with `BAD_REQUEST`. #### StartSession (`StartSessionRequestType` and `StartSessionConfirmType`) -The client logs in by sending a `type: StartSessionRequestType`. The bridge has 3 session slots, shared by the clients -on the LAN and the cloud connection, so up to 3 clients can be logged in at the same time (seen on a LAN C -with two clients). Requests that need a session, sent without one, are answered with `NOT_ALLOWED`. +The client logs in by sending a `type: StartSessionRequestType`. A LAN C (firmware R1.5.1) has 5 session slots, the +gateway in a ComfoAir Flex (R1.2.1) has 3. They are shared by the clients on the LAN and the cloud connection, so that +many clients can be logged in at the same time (seen on a LAN C with two clients). Requests that need a session, sent +without one, are answered with `NOT_ALLOWED`. ```javascript type: StartSessionRequestType @@ -236,7 +237,7 @@ The confirmation also has a `resumed` field. The bridge sets it when a session w connection, or when the same connection sends a `StartSessionRequestType` again; not on a new session or a takeover. The official app treats a confirmation with `resumed` set as a failed connection and stops †. -If all 3 session slots are taken, the bridge will respond with a `result` of `OTHER_SESSION`. The name of the client +If all session slots are taken, the bridge will respond with a `result` of `OTHER_SESSION`. The name of the client whose session was least recently active will be in `devicename`. ```javascript