Class ObnizApi

Hierarchy

  • ObnizApi

Constructors

Properties

Accessors

Methods

Constructors

Properties

options: any
urlBase: any

Accessors

Methods

  • Get device is online or offline

    Parameters

    • callback: ((val) => void)

      with result

        • (val): void
        • Parameters

          • val: {
                state: "offline" | "online";
            }
            • state: "offline" | "online"

          Returns void

    Returns Promise<any>

  • Get device is online or offline

    Returns Promise<{
        state: "offline" | "online";
    }>

  • post data via obniz REST api

    Parameters

    • json: any
    • callback: ((result) => void)
        • (result): void
        • Parameters

          • result: any

          Returns void

    Returns Promise<any>

Generated using TypeDoc