Skip to content

Commit

Permalink
draft - dynamic apps
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdecenzo committed Nov 22, 2021
1 parent b717b36 commit c1d23e0
Show file tree
Hide file tree
Showing 12 changed files with 809 additions and 4 deletions.
7 changes: 6 additions & 1 deletion examples/platform/linux/ControllerShellCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ using namespace ::chip::Controller;

DeviceCommissioner * gCommissioner;

DeviceCommissioner * GetDeviceCommissioner()
{
return gCommissioner;
}

#if CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY
static CHIP_ERROR ResetUDC(bool printHeader)
{
Expand Down Expand Up @@ -232,7 +237,7 @@ static CHIP_ERROR pairOnNetwork(bool printHeader, uint32_t pincode, uint16_t dis
return CHIP_NO_ERROR;
}

static CHIP_ERROR pairUDC(bool printHeader, uint32_t pincode, size_t index)
CHIP_ERROR pairUDC(bool printHeader, uint32_t pincode, size_t index)
{
streamer_t * sout = streamer_get();

Expand Down
4 changes: 4 additions & 0 deletions examples/platform/linux/ControllerShellCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@

#include <controller/CHIPDeviceController.h>

using namespace ::chip::Controller;

namespace chip {
namespace Shell {

void RegisterControllerCommands(chip::Controller::DeviceCommissioner * commissioner);
CHIP_ERROR pairUDC(bool printHeader, uint32_t pincode, size_t index);
DeviceCommissioner * GetDeviceCommissioner();

} // namespace Shell
} // namespace chip
Loading

0 comments on commit c1d23e0

Please sign in to comment.