Project_SylDa/.superpowers/brainstorm/124687-1785870282/content/broker_flow.html
eddy 671da31605
All checks were successful
CI / build (pull_request) Successful in 1m16s
fix: address critical security issues discovered during code review
2026-08-04 21:56:05 +02:00

53 lines
2.6 KiB
HTML

<h2>Voorgestelde Flow: De "Server-as-Broker" methode</h2>
<p class="subtitle">Gebruik de SylDa_Server als ontmoetingsplaats voor versie-informatie</p>
<div class="mockup">
<div class="mockup-header">Interactie Diagram</div>
<div class="mockup-body" style="background: #1e1e1e; color: #d4d4d4; padding: 20px; font-family: monospace; line-height: 1.4;">
<div style="margin-bottom: 10px; color: #569cd6;">// 1. Client meldt zich aan</div>
[Client] --(Write version: "5")--> [Server: ClientStatusChar]
[Client] --(Subscribe)------------> [Server: ClientControlChar]
<div style="margin-top: 20px; margin-bottom: 10px; color: #569cd6;">// 2. App checkt status</div>
[App] --(Read ClientStatus)----> [Server]
<span style="color: #ce9178;">App denkt: "Client heeft v5, ik heb v6. Update nodig!"</span>
<div style="margin-top: 20px; margin-bottom: 10px; color: #569cd6;">// 3. App start de dans</div>
[App] --(Write: "START_OTA")---> [Server: ClientControlChar]
[Server] --(Notify)---------------> [Client]
<div style="margin-top: 20px; margin-bottom: 10px; color: #569cd6;">// 4. De wissel</div>
<span style="color: #4ec9b0;">Client disconnect van Server -> Start Advertising</span>
<span style="color: #4ec9b0;">App disconnect van Server -> Scant naar Client OTA</span>
<div style="margin-top: 20px; margin-bottom: 10px; color: #569cd6;">// 5. De eigenlijke OTA</div>
[App] --(Direct BLE OTA)-------> [Client (nu in Server mode)]
</div>
</div>
<div class="section">
<h3>Technische details om te bespreken:</h3>
<div class="options" data-multiselect>
<div class="option" data-choice="uuid-tracking" onclick="toggleSelect(this)">
<div class="letter">1</div>
<div class="content">
<h3>UUID Tracking</h3>
<p>Aangezien de Server 2 clients ondersteunt, moet de Server de versie per UUID opslaan zodat de App weet welke client welke versie heeft.</p>
</div>
</div>
<div class="option" data-choice="auth" onclick="toggleSelect(this)">
<div class="letter">2</div>
<div class="content">
<h3>Beveiliging (HMAC/AES)</h3>
<p>Moet de "START_OTA" opdracht ook versleuteld zijn? (Waarschijnlijk wel, om te voorkomen dat een vreemde de clients platlegt).</p>
</div>
</div>
<div class="option" data-choice="reconnect" onclick="toggleSelect(this)">
<div class="letter">3</div>
<div class="content">
<h3>Auto-reconnect</h3>
<p>Na de update (of bij falen/timeout) moet de Client weer terug in zijn normale rol vallen en de Server zoeken.</p>
</div>
</div>
</div>
</div>