testWirelessDevice method

Future<TestWirelessDeviceResponse> testWirelessDevice({
  1. required String id,
})

Simulates a provisioned device by sending an uplink data payload of Hello.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter id : The ID of the wireless device to test.

Implementation

Future<TestWirelessDeviceResponse> testWirelessDevice({
  required String id,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/wireless-devices/${Uri.encodeComponent(id)}/test',
    exceptionFnMap: _exceptionFns,
  );
  return TestWirelessDeviceResponse.fromJson(response);
}