• startSearchWiredGW(callback: ((gw_id: string, product_id: string) => void)): boolean
  • Start searching wired gateway
    Both information gw_id and product_id can be collected by callback

    Returns

    Function's result. It returns false if startSearchWiredGW is called already before done

    Example

    let tempScannedData = []

    function filterNotification(gwId: string, productId: string) {
    const result = tempScannedData.filter((tempScannedData) => {
    if (tempScannedData.productId == productId) {
    return true
    }
    })
    if (result.length == 0) {
    tempScannedData.push({ gwId: gwId, productId: productId })
    }
    }

    Parameters

    • callback: ((gw_id: string, product_id: string) => void)

      Callback function for offer gateway information(gw_id, product_id)

        • (gw_id: string, product_id: string): void
        • Parameters

          • gw_id: string
          • product_id: string

          Returns void

    Returns boolean