removeEventQueue method

Future<void> removeEventQueue(
  1. String thingId
)

Removes the event endpoint from the S3I-Broker.

Throws a NetworkAuthenticationException if AuthenticationManager.getAccessToken fails. Throws a SocketException if no internet connection is available. Throws a NetworkResponseException if the received status code is not 204.

Implementation

Future<void> removeEventQueue(String thingId) async {
  final Response response =
      await deleteConfig('/things/$thingId/broker/event');
  if (response.statusCode != 204) throw NetworkResponseException(response);
}