Skip to content

Commit

Permalink
Make the Python controller listen on CHIP_PORT + 1 like all our other…
Browse files Browse the repository at this point in the history
… controllers. (#7800)

This way if both chip-device-ctrl and a server app are running on the
same IP they don't stomp on each other's ports.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jun 29, 2021
1 parent 5784f7c commit d33b7ea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ CHIP_ERROR pychip_DeviceController_NewDeviceController(chip::Controller::DeviceC
initParams.operationalCredentialsDelegate = &sOperationalCredentialsIssuer;
initParams.imDelegate = &PythonInteractionModelDelegate::Instance();

(*outDevCtrl)->SetUdpListenPort(CHIP_PORT + 1);
ReturnErrorOnFailure((*outDevCtrl)->Init(localDeviceId, initParams));
ReturnErrorOnFailure((*outDevCtrl)->ServiceEvents());

Expand Down

0 comments on commit d33b7ea

Please sign in to comment.