@@ -167,13 +167,13 @@ CHIP_ERROR GeneralDiagosticsAttrAccess::Read(const ConcreteReadAttributePath & a
167
167
return CHIP_NO_ERROR;
168
168
}
169
169
170
- class GeneralDiagnosticDelegate : public DeviceLayer ::ConnectivityManagerDelegate, public DeviceLayer::DiagnosticsDelegate
170
+ class GeneralDiagnosticsDelegate : public DeviceLayer ::ConnectivityManagerDelegate, public DeviceLayer::GeneralDiagnosticsDelegate
171
171
{
172
172
173
173
// Gets called when any network interface on the Node is updated.
174
174
void OnNetworkInfoChanged () override
175
175
{
176
- ChipLogProgress (Zcl, " GeneralDiagnosticDelegate : OnNetworkInfoChanged" );
176
+ ChipLogProgress (Zcl, " GeneralDiagnosticsDelegate : OnNetworkInfoChanged" );
177
177
178
178
for (uint16_t index = 0 ; index < emberAfEndpointCount (); index ++)
179
179
{
@@ -194,7 +194,7 @@ class GeneralDiagnosticDelegate : public DeviceLayer::ConnectivityManagerDelegat
194
194
// Gets called when the device has been rebooted.
195
195
void OnDeviceRebooted () override
196
196
{
197
- ChipLogProgress (Zcl, " GeneralDiagnosticDelegate : OnDeviceRebooted" );
197
+ ChipLogProgress (Zcl, " GeneralDiagnosticsDelegate : OnDeviceRebooted" );
198
198
199
199
for (uint16_t index = 0 ; index < emberAfEndpointCount (); index ++)
200
200
{
@@ -217,7 +217,7 @@ class GeneralDiagnosticDelegate : public DeviceLayer::ConnectivityManagerDelegat
217
217
// Get called when the Node detects a hardware fault has been raised.
218
218
void OnHardwareFaultsDetected () override
219
219
{
220
- ChipLogProgress (Zcl, " GeneralDiagnosticDelegate : OnHardwareFaultsDetected" );
220
+ ChipLogProgress (Zcl, " GeneralDiagnosticsDelegate : OnHardwareFaultsDetected" );
221
221
222
222
for (uint16_t index = 0 ; index < emberAfEndpointCount (); index ++)
223
223
{
@@ -238,7 +238,7 @@ class GeneralDiagnosticDelegate : public DeviceLayer::ConnectivityManagerDelegat
238
238
// Get called when the Node detects a radio fault has been raised.
239
239
void OnRadioFaultsDetected () override
240
240
{
241
- ChipLogProgress (Zcl, " GeneralDiagnosticDelegate : OnHardwareFaultsDetected" );
241
+ ChipLogProgress (Zcl, " GeneralDiagnosticsDelegate : OnHardwareFaultsDetected" );
242
242
243
243
for (uint16_t index = 0 ; index < emberAfEndpointCount (); index ++)
244
244
{
@@ -259,7 +259,7 @@ class GeneralDiagnosticDelegate : public DeviceLayer::ConnectivityManagerDelegat
259
259
// Get called when the Node detects a network fault has been raised.
260
260
void OnNetworkFaultsDetected () override
261
261
{
262
- ChipLogProgress (Zcl, " GeneralDiagnosticDelegate : OnHardwareFaultsDetected" );
262
+ ChipLogProgress (Zcl, " GeneralDiagnosticsDelegate : OnHardwareFaultsDetected" );
263
263
264
264
for (uint16_t index = 0 ; index < emberAfEndpointCount (); index ++)
265
265
{
@@ -278,14 +278,14 @@ class GeneralDiagnosticDelegate : public DeviceLayer::ConnectivityManagerDelegat
278
278
}
279
279
};
280
280
281
- GeneralDiagnosticDelegate gDiagnosticDelegate ;
281
+ GeneralDiagnosticsDelegate gDiagnosticDelegate ;
282
282
283
283
} // anonymous namespace
284
284
285
285
void MatterGeneralDiagnosticsPluginServerInitCallback ()
286
286
{
287
287
registerAttributeAccessOverride (&gAttrAccess );
288
288
289
- GetDiagnosticDataProvider ().SetDelegate (&gDiagnosticDelegate );
290
289
ConnectivityMgr ().SetDelegate (&gDiagnosticDelegate );
290
+ GetDiagnosticDataProvider ().SetGeneralDiagnosticsDelegate (&gDiagnosticDelegate );
291
291
}
0 commit comments