src/controller/python/chip/clusters/CHIPClusters.cpp
// End of Cluster SoftwareDiagnostics
// Cluster Switch
End of Cluster SoftwareDiagnostics
Cluster Switch
End of Cluster SoftwareDiagnostics Cluster Switch
chip::ChipError::StorageType chip_ime_ReadAttribute_Switch_NumberOfPositions(chip::Controller::Device * device,
                                                                             chip::EndpointId ZCLendpointId,
                                                                             chip::GroupId )
{
    VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT.AsInteger());
    chip::Controller::SwitchCluster cluster;
    cluster.Associate(device, ZCLendpointId);
    return cluster.ReadAttributeNumberOfPositions(gInt8uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()).AsInteger();
}
chip :: ChipError :: StorageType chip_ime_ReadAttribute_Switch_NumberOfPositions ( chip :: Controller :: Device * device , chip :: EndpointId ZCLendpointId , chip :: GroupId ) { VerifyOrReturnError ( device != nullptr , CHIP_ERROR_INVALID_ARGUMENT . AsInteger ( ) ) ; chip :: Controller :: SwitchCluster cluster ; cluster . Associate ( device , ZCLendpointId ) ; return cluster . ReadAttributeNumberOfPositions ( gInt8uAttributeCallback . Cancel ( ) , gDefaultFailureCallback . Cancel ( ) ) . AsInteger ( ) ; }
End of Cluster SoftwareDiagnostics
Cluster Switch
End of Cluster SoftwareDiagnostics Cluster Switch
/* ZCLgroupId */