esp-nvs-js
    Preparing search index...

    Class NVS

    Index

    Constructors

    • Parameters

      • loader: SerialPort | ESPLoader

        ESPLoader from ESPTool library or WebSerial SerialPort

      Returns NVS

      Argument is not an ESPLoader or a SerialPort

    Properties

    cache: nvs_cache

    Methods

    • Asynchronously iterates over all NVS entries

      Returns AsyncIterator<[string, string, nvs_value], any, any>

    • Parses all NVS entries on device

      Returns Promise<void>

    • Connects to device

      Returns Promise<void>

    • Fetches NVS partition from device If no partition have been specified before parsing, default NVS page will automatically be fetched from partition table

      Parameters

      • OptionalpartitionName: string

        Partition name to get the page addresses for

      • Optionaladdr: number

        Address of the partition table

      Returns Promise<boolean>

      Partition already set

    • Gets the internal entry for the specified key in the specified namespace

      Parameters

      • namespace: string

        Namespace to find the key in

      • key: string

        Key to find the value for

      Returns Promise<nvs_entry | null>

      Found entry or null if not found

    • Gets the value for the specified key in the specified namespace

      Parameters

      • namespace: string

        Namespace to find the key in

      • key: string

        Key to find the value for

      Returns Promise<nvs_value | null>

    • Parses next NVS entry and adds it to the cache

      Returns Promise<nvs_entry | null>

      Parsed entry or null if no more entries are available on any of the registered NVS pages

    • Specifies NVS partition to use If no partition have been specified before parsing, default NVS page will automatically be fetched from partition table

      Parameters

      • addr: number

        Address of an NVS partition

      • len: number

        Size of the NVS partition

      Returns void

      Partition already set

    • Gets all data as HTML table

      Returns Promise<HTMLTableElement>

    • Gets all data as JSON

      Returns Promise<{}>