bbas-devicer - v0.2.1
    Preparing search index...

    Interface BbasStorage

    Synchronous storage interface (in-memory, SQLite). Mirrors the IpStorage interface from ip-devicer.

    interface BbasStorage {
        clear(deviceId: string): void;
        getHistory(deviceId: string, limit?: number): BbasSnapshot[];
        getLatest(deviceId: string): BbasSnapshot | null;
        save(snapshot: BbasSnapshot): void;
        size(): number;
    }
    Index

    Methods

    • Parameters

      • deviceId: string

      Returns void