addDetector method
Implementation
Future<Map<String, dynamic>> addDetector(
String deviceSerial, // A1 Hub serial
String detectorToAddSerial, // Serial of detector to add
String
detectorType, // e.g., "PIR", "FIRE" - see DetectorType enum or API docs
String detectorCode, // Verification code, API says "must enter ABCDEF"
) async {
return _client.post('/api/lapp/detector/add', {
'deviceSerial': deviceSerial,
'detectorSerial': detectorToAddSerial,
'detectorType': detectorType,
'detectorCode': detectorCode,
});
}