ConfigCodec

JSON (de)serialization for DeviceConfig. Lives in :core (not :protocol) to keep the protocol module dependency-free. Electrode labels ARE stored: they are user-edited, so deriving them from the model would silently discard a custom montage on reconnect.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: DeviceConfig): String