Skip to content

Create a tracked "Session ID" and broadcast function to resolve 'multi-device state-races' #158

@Scottapotamas

Description

@Scottapotamas

This is some kind of ephemeral volatile value the UI sends after successful handshake.
When the microcontroller resets, this goes to zero, and the UI can then know if the device state needs to be refreshed.

There needs to be a function for event-based "wants to change the sessionID" which is called by a different instance of the UI (think mobile+pc at once).

When the even comes in, the new sessionID needs to be sent to all interfaces (and then handling disconnected interfaces is a developer side output problem).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions