Options
All
  • Public
  • Public/Protected
  • All
Menu

edilkamin

Index

Variables

API_URL: "https://fxtj7xkgc6.execute-api.eu-central-1.amazonaws.com/prod/" = "https://fxtj7xkgc6.execute-api.eu-central-1.amazonaws.com/prod/"

Functions

  • configure(baseURL?: string): { deviceInfo: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<DeviceInfoType, any>>); setPower: ((jwtToken: string, macAddress: string, value: number) => Promise<AxiosResponse<any, any>>); setPowerOff: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<any, any>>); setPowerOn: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<any, any>>) }
  • Parameters

    • baseURL: string = API_URL

    Returns { deviceInfo: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<DeviceInfoType, any>>); setPower: ((jwtToken: string, macAddress: string, value: number) => Promise<AxiosResponse<any, any>>); setPowerOff: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<any, any>>); setPowerOn: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<any, any>>) }

    • deviceInfo: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<DeviceInfoType, any>>)
        • (jwtToken: string, macAddress: string): Promise<AxiosResponse<DeviceInfoType, any>>
        • Parameters

          • jwtToken: string
          • macAddress: string

          Returns Promise<AxiosResponse<DeviceInfoType, any>>

    • setPower: ((jwtToken: string, macAddress: string, value: number) => Promise<AxiosResponse<any, any>>)
        • (jwtToken: string, macAddress: string, value: number): Promise<AxiosResponse<any, any>>
        • Parameters

          • jwtToken: string
          • macAddress: string
          • value: number

          Returns Promise<AxiosResponse<any, any>>

    • setPowerOff: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<any, any>>)
        • (jwtToken: string, macAddress: string): Promise<AxiosResponse<any, any>>
        • Parameters

          • jwtToken: string
          • macAddress: string

          Returns Promise<AxiosResponse<any, any>>

    • setPowerOn: ((jwtToken: string, macAddress: string) => Promise<AxiosResponse<any, any>>)
        • (jwtToken: string, macAddress: string): Promise<AxiosResponse<any, any>>
        • Parameters

          • jwtToken: string
          • macAddress: string

          Returns Promise<AxiosResponse<any, any>>

  • deviceInfo(jwtToken: string, macAddress: string): Promise<AxiosResponse<DeviceInfoType, any>>
  • setPower(jwtToken: string, macAddress: string, value: number): Promise<AxiosResponse<any, any>>
  • Parameters

    • jwtToken: string
    • macAddress: string
    • value: number

    Returns Promise<AxiosResponse<any, any>>

  • setPowerOff(jwtToken: string, macAddress: string): Promise<AxiosResponse<any, any>>
  • Parameters

    • jwtToken: string
    • macAddress: string

    Returns Promise<AxiosResponse<any, any>>

  • setPowerOn(jwtToken: string, macAddress: string): Promise<AxiosResponse<any, any>>
  • Parameters

    • jwtToken: string
    • macAddress: string

    Returns Promise<AxiosResponse<any, any>>

  • signIn(username: string, password: string): Promise<string>
  • Sign in to return the JWT token.

    Parameters

    • username: string
    • password: string

    Returns Promise<string>

Generated using TypeDoc