-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RPC support in the example tool chef linux build
Port RPC server enabled logic into example tool chef, and also all the pre-configured zap file for different device types the usage example: $ ./chef.py -zbr -t linux -d lighting --pid 0x8000
- Loading branch information
Showing
5 changed files
with
152 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <app-common/zap-generated/attribute-id.h> | ||
#include <app-common/zap-generated/attribute-type.h> | ||
#include <app-common/zap-generated/attributes/Accessors.h> | ||
#include <app-common/zap-generated/callback.h> | ||
#include <app-common/zap-generated/cluster-id.h> | ||
#include <app-common/zap-generated/command-id.h> | ||
|
||
bool emberAfPluginDoorLockOnDoorLockCommand(chip::EndpointId endpointId, chip::Optional<chip::ByteSpan> pinCode) | ||
{ | ||
return true; | ||
} | ||
|
||
bool emberAfPluginDoorLockOnDoorUnlockCommand(chip::EndpointId endpointId, chip::Optional<chip::ByteSpan> pinCode) | ||
{ | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (c) 2021 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# add this gni as import in your build args to use pigweed in the example | ||
# 'import("//with_pw_rpc.gni")' | ||
|
||
import("//build_overrides/chip.gni") | ||
|
||
import("${chip_root}/config/standalone/args.gni") | ||
|
||
import("//build_overrides/pigweed.gni") | ||
|
||
cpp_standard = "gnu++17" | ||
|
||
pw_log_BACKEND = "$dir_pw_log_basic" | ||
pw_assert_BACKEND = "$dir_pw_assert_log" | ||
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio" | ||
pw_trace_BACKEND = "$dir_pw_trace_tokenized" | ||
pw_unit_test_MAIN = "$dir_pw_unit_test:logging_main" | ||
pw_rpc_system_server_BACKEND = "${chip_root}/config/linux/lib/pw_rpc:pw_rpc" | ||
dir_pw_third_party_nanopb = "${chip_root}/third_party/nanopb/repo" | ||
pw_chrono_SYSTEM_CLOCK_BACKEND = "$dir_pw_chrono_stl:system_clock" | ||
pw_sync_MUTEX_BACKEND = "$dir_pw_sync_stl:mutex_backend" | ||
|
||
pw_build_LINK_DEPS = [ | ||
"$dir_pw_assert:impl", | ||
"$dir_pw_log:impl", | ||
] | ||
|
||
chip_enable_pw_rpc = true | ||
chip_build_pw_trace_lib = true |