Skip to content

Commit

Permalink
fix apps
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-apple committed Nov 16, 2021
1 parent 83037da commit f1cc790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/ota-requestor-app/esp32/main/OTARequesterImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ota-requestor-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void SendQueryImageCommand(chip::NodeId peerNodeId = providerNodeId, chip::Fabri
};

chip::OperationalDeviceProxy * operationalDeviceProxy =
chip::Platform::New<chip::OperationalDeviceProxy>(initParams, fabric->GetPeerIdForNode(peerNodeId));
chip::Platform::New<chip::OperationalDeviceProxy>(initParams, fabric->GetPeerIdForNode(peerNodeId), nullptr);
if (operationalDeviceProxy == nullptr)
{
ChipLogError(SoftwareUpdate, "Failed in creating an instance of OperationalDeviceProxy");
Expand Down

0 comments on commit f1cc790

Please sign in to comment.