feat: add chip level command handling in GatewayController
Signed-off-by: Tony <tonylu@tony-cloud.com>
This commit is contained in:
@@ -552,7 +552,8 @@ int GatewayBleBridge::handleAccess(uint16_t, uint16_t attr_handle,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (index == static_cast<int>(kGatewayCharacteristicIndex)) {
|
||||
if (GatewayRuntime::isGatewayCommandFrame(payload) ||
|
||||
index == static_cast<int>(kGatewayCharacteristicIndex)) {
|
||||
handleGatewayWrite(payload);
|
||||
} else {
|
||||
handleRawWrite(static_cast<size_t>(index), payload);
|
||||
@@ -565,4 +566,4 @@ int GatewayBleBridge::handleAccess(uint16_t, uint16_t attr_handle,
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace gateway
|
||||
} // namespace gateway
|
||||
|
||||
Reference in New Issue
Block a user