Skip to content

Commit

Permalink
rc 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shchen-Lab committed Oct 16, 2023
1 parent 6b2d52c commit 0d95773
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion examples/lighting-app/bouffalolab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,5 +383,6 @@ ota-provider-app build and usage.
```
- TestCommand
```shell
./chip-tool any command-by-id 0x130D0B05 0x0000 '{ "0x0": { "0": null, "1": false }}' 123 1
./chip-tool any command-by-id 0x130DFCCE 0x0000 '{ "0x0": { "0": null, "1": false }}' 1 1
./chip-tool any read-by-id 0x130DFCCE 0x011c 1 1
```
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ server cluster ColorControl = 768 {
}

/** Zigbee Diagnostic cluser */
server cluster ZigbeeDiagnostic = 319621893 {
server cluster ZigbeeDiagnostic = 319683790 {
attribute int8u lastMessageLQI = 284;
attribute int8s lastMessageRSSI = 285;
readonly attribute command_id generatedCommandList[] = 65528;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4444,7 +4444,7 @@
},
{
"name": "ZigbeeDiagnostic",
"code": 319621893,
"code": 319683790,
"mfgCode": null,
"define": "ZIGBEE_DIAGNOSTIC",
"side": "server",
Expand Down Expand Up @@ -4474,7 +4474,7 @@
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 1
"reportableChange": 0
},
{
"name": "LastMessageRSSI",
Expand All @@ -4490,7 +4490,7 @@
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 1
"reportableChange": 0
},
{
"name": "GeneratedCommandList",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ZigbeeDiagnosticServer : public AttributeAccessInterface
public:
static ZigbeeDiagnosticServer & Instance();
// Register for the Basic cluster on all endpoints.
ZigbeeDiagnosticServer() : AttributeAccessInterface(Optional<EndpointId>::Missing(), BasicInformation::Id) {}
ZigbeeDiagnosticServer() : AttributeAccessInterface(Optional<EndpointId>::Missing(), ZigbeeDiagnostic::Id) {}
bool TestDeviceCommand(app::CommandHandler * commandObj, const app::ConcreteCommandPath & commandPath);
CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override;
CHIP_ERROR Write(const ConcreteDataAttributePath & aPath, AttributeValueDecoder & aDecoder) override;
Expand All @@ -69,6 +69,7 @@ ZigbeeDiagnosticServer & ZigbeeDiagnosticServer::Instance()
}
CHIP_ERROR ZigbeeDiagnosticServer::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
{
printf("1111111111\r\n");
if (aPath.mClusterId != Clusters::ZigbeeDiagnostic::Id)
{
// We shouldn't have been called at all.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
<name>ZigbeeDiagnostic</name>
<domain>CHIP</domain>
<description>Zigbee Diagnostic cluser</description>
<code>0x130D0B05</code>
<code>0x130DFCCE</code>
<define>ZIGBEE_DIAGNOSTIC</define>
<client tick="false" init="false">true</client>
<server tick="false" init="false">true</server>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0d95773

Please sign in to comment.