@@ -293,27 +293,27 @@ void HandleSimulateLatchPosition(Json::Value & jsonValue)
293
293
* echo '{"Name":"SetRefrigeratorDoorStatus", "EndpointId": 1, "DoorOpen": 1}' > /tmp/chip_all_clusters_fifo_1146610
294
294
*
295
295
* JSON Arguments:
296
- * - "Name": Must be "SetRefDoorStatus "
296
+ * - "Name": Must be "SetRefrigeratorDoorStatus "
297
297
* - "EndpointId": ID of endpoint
298
- * - "DoorOpen": Status of the door , open or closed.
298
+ * - "DoorOpen": Status of the Door , open or closed.
299
299
*
300
300
* @param jsonValue - JSON payload from named pipe
301
301
*/
302
- void SetRefrigetatorDoorStatusHandler (Json::Value & jsonValue)
302
+ void SetRefrigeratorDoorStatusHandler (Json::Value & jsonValue)
303
303
{
304
304
bool hasEndpointId = HasNumericField (jsonValue, " EndpointId" );
305
305
bool hasDoorStatus = HasNumericField (jsonValue, " DoorOpen" );
306
306
307
307
if (!hasEndpointId || !hasDoorStatus)
308
308
{
309
309
std::string inputJson = jsonValue.toStyledString ();
310
- ChipLogError (NotSpecified, " Missing or invalid value for one of EndpointId, Status in %s" , inputJson.c_str ());
310
+ ChipLogError (NotSpecified, " Missing or invalid value for one of EndpointId, DoorOpen in %s" , inputJson.c_str ());
311
311
return ;
312
312
}
313
313
// values to update the door status
314
314
EndpointId endpointId = static_cast <EndpointId>(jsonValue[" EndpointId" ].asUInt ());
315
315
bool doorStatus = static_cast <bool >(jsonValue[" DoorOpen" ].asBool ());
316
- ChipLogDetail (NotSpecified, " SetRefrigetatorDoorStatusHandler State -> %d." , doorStatus);
316
+ ChipLogDetail (NotSpecified, " SetRefrigeratorDoorStatusHandler State -> %d." , doorStatus);
317
317
if (!doorStatus)
318
318
{
319
319
RefrigeratorAlarmServer::Instance ().SetMaskValue (endpointId, doorStatus);
@@ -554,7 +554,7 @@ void AllClustersAppCommandHandler::HandleCommand(intptr_t context)
554
554
}
555
555
else if (name == " SetRefrigeratorDoorStatus" )
556
556
{
557
- SetRefrigetatorDoorStatusHandler (self->mJsonValue );
557
+ SetRefrigeratorDoorStatusHandler (self->mJsonValue );
558
558
}
559
559
else
560
560
{
0 commit comments