fix HAP Char length
This commit is contained in:
1 parent
a70152df0e
commit
854d7185f4
2 files changed
+1
-3
No files matched your search
@@ -50,9 +50,7 @@ err_t HAPLightBulb::begin(void)
|
||||
|
||||
// ON char
|
||||
_on.setHapProperties(HAP_CHR_PROPS_SECURE_READ | HAP_CHR_PROPS_SECURE_WRITE | HAP_CHR_PROPS_NOTIFY );
|
||||
_on.setFixedLen(1);
|
||||
VERIFY_STATUS( _on.begin() );
|
||||
_on.write( (uint8_t) 0x00 );
|
||||
|
||||
return ERROR_NONE;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ err_t HAPPairing::begin(void)
|
||||
_features.setHapProperties(HAP_CHR_PROPS_READ);
|
||||
_verify.setMaxLen(100);
|
||||
VERIFY_STATUS( _features.begin() );
|
||||
_features.write( (uint8_t) 0x01); // support HAP pairing
|
||||
//_features.write( (uint8_t) 0x01); // support HAP pairing
|
||||
|
||||
_pairing.setHapProperties(HAP_CHR_PROPS_SECURE_READ | HAP_CHR_PROPS_SECURE_WRITE);
|
||||
_pairing.setMaxLen(100);
|
||||
|
||||
Reference in new issue
Block a user