S9CommandSequencer
Runs only the SH09 commands verified on firmware image 1.
Kind: Class
Package: @ovok/native
Import
import { S9CommandSequencer } from '@ovok/native/bt-management';
TypeScript signatures
(params: S9CommandSequencerParams): S9CommandSequencer
| Parameter | Type | Details |
|---|---|---|
params | S9CommandSequencerParams | — |
Returns: S9CommandSequencer.
Public members
| Member | Type | Details |
|---|---|---|
initialCommands | (): readonly DeviceCommand[] | Sent once every characteristic is subscribed. Empty starts a device that only listens. |
isHistoryTransfer | (): boolean | True when accepted results are records downloaded from device history. |
commandTimeoutMs | (): number | The response timeout for the currently outstanding command, when a protocol needs one. |
commandProgress | (frame: readonly string[]): "ignored" | "partial" | "complete" | Describes whether a frame is ignored, partial, or completes the outstanding command. |
onCommandTimeout | (): { commands: DeviceCommand[]; terminal?: undefined; } | { terminal: boolean; commands?: undefined; } | Re-sends the current command or ends the exchange after a response timeout. |
nextCommand | (frame: readonly string[]): readonly DeviceCommand[] | undefined | Answers one complete frame. Returning undefined sends nothing, which is how a sequencer waits: an unidentified device is left alone rather than addressed with an opcode that may mean something else on the hardware actually present. |
Learn the workflow
Continue with Bluetooth for the workflow context and examples.