From f1cc79033e1a34bb8c50d7bdb7ea938499dfc847 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Mon, 15 Nov 2021 16:05:36 -0800 Subject: [PATCH] fix apps --- examples/ota-requestor-app/esp32/main/OTARequesterImpl.cpp | 2 +- examples/ota-requestor-app/linux/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ota-requestor-app/esp32/main/OTARequesterImpl.cpp b/examples/ota-requestor-app/esp32/main/OTARequesterImpl.cpp index 8c523855e5573a..fd5a8d202c50d4 100644 --- a/examples/ota-requestor-app/esp32/main/OTARequesterImpl.cpp +++ b/examples/ota-requestor-app/esp32/main/OTARequesterImpl.cpp @@ -294,7 +294,7 @@ void ConnectToProvider(const char * ipAddress, uint32_t nodeId) PeerId peerID = fabric->GetPeerId(); peerID.SetNodeId(providerNodeId); - operationalDeviceProxy = new chip::OperationalDeviceProxy(initParams, peerID); + operationalDeviceProxy = new chip::OperationalDeviceProxy(initParams, peerID, nullptr); server->SetOperationalDeviceProxy(operationalDeviceProxy); // Explicitly calling UpdateDeviceData() should not be needed once OperationalDeviceProxy can resolve IP address from node diff --git a/examples/ota-requestor-app/linux/main.cpp b/examples/ota-requestor-app/linux/main.cpp index 1a83052fa6ab46..318c9cd8786bbc 100644 --- a/examples/ota-requestor-app/linux/main.cpp +++ b/examples/ota-requestor-app/linux/main.cpp @@ -272,7 +272,7 @@ void SendQueryImageCommand(chip::NodeId peerNodeId = providerNodeId, chip::Fabri }; chip::OperationalDeviceProxy * operationalDeviceProxy = - chip::Platform::New(initParams, fabric->GetPeerIdForNode(peerNodeId)); + chip::Platform::New(initParams, fabric->GetPeerIdForNode(peerNodeId), nullptr); if (operationalDeviceProxy == nullptr) { ChipLogError(SoftwareUpdate, "Failed in creating an instance of OperationalDeviceProxy");