Implement websocket
This commit is contained in:
@@ -170,6 +170,20 @@ class BrandmeisterClient {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> dropAutoStaticGroup(int dmrId) async {
|
||||
final response = await http.get(
|
||||
Uri.parse('$baseUrl/device/$dmrId/action/dropAutoStaticGroup'),
|
||||
headers: _headers,
|
||||
);
|
||||
|
||||
if (response.statusCode < 200 || response.statusCode >= 300) {
|
||||
throw BrandmeisterError(
|
||||
'Failed to drop auto-static group: ${response.body}',
|
||||
statusCode: response.statusCode,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Talkgroup Endpoints
|
||||
Future<Map<String, String>> getTalkgroups() async {
|
||||
final response = await http.get(
|
||||
|
||||
Reference in New Issue
Block a user