• registerWiredGW(gw_id: string, product_id: string, timeout: number): Promise<any>
  • Register wired gateway
    In case success registration, Thing name is made by combination(building/dong/ho/user (zGuard meta info.)

    Returns

    Success and failure details as a result

    • in case OK: ref
    • in case Processing: registerWiredGW is started
    • in case Occur Timeout: Timeout

    Example

    iot-device-sdk-react.registerWiredGw({
    "eb9a55f0d10d1c9a11luux",
    "keyyj3fy8x98arty",
    90
    }).then(
    (okRes: any) => {
    debugText("Ok Res")
    assignedGwId = okRes.devId
    console.log(assignedGwId)
    console.log(okRes)
    },
    (errRes) => {
    debugText("Ng Res")
    console.log(errRes)
    }
    )

    Parameters

    • gw_id: string

      gateway id for registration

    • product_id: string

      product id for registration

    • timeout: number

      maximum timeout for registration

    Returns Promise<any>