startUpgradeGateway static method

dynamic startUpgradeGateway(
  1. TTDfuType dfuType,
  2. String clientId,
  3. String accessToken,
  4. int gatewayId,
  5. String gatewayMac,
  6. TTUpgradeProgressCallback progressCallback,
  7. TTSuccessCallback successCallback,
  8. TTUpgradeFailedCallback failedCallback,
)

Implementation

static startUpgradeGateway(
    TTDfuType dfuType,
    String clientId,
    String accessToken,
    int gatewayId,
    String gatewayMac,
    TTUpgradeProgressCallback progressCallback,
    TTSuccessCallback successCallback,
    TTUpgradeFailedCallback failedCallback) {
  Map map = Map();
  map["dfuType"] = dfuType;
  map["clientId"] = clientId;
  map["accessToken"] = accessToken;
  map["gatewayId"] = gatewayId;
  map["gatewayMac"] = gatewayMac;
  invoke("startUpgradeGateway", map, successCallback, progressCallback,
      failedCallback);
}