removeBrokerEndpoint method

Future<void> removeBrokerEndpoint(
  1. String thingId
)

Removes an endpoint (queue with the matching binding) 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> removeBrokerEndpoint(String thingId) async {
  final Response response = await deleteConfig('/things/$thingId/broker');
  if (response.statusCode != 204) throw NetworkResponseException(response);
}