Skip to content

Commit 3794c83

Browse files
committed
Matter + HA + Cloud code explained
1 parent be911c1 commit 3794c83

File tree

1 file changed

+9
-0
lines changed
  • content/hardware/03.nano/boards/nano-matter/tutorials/user-manual

1 file changed

+9
-0
lines changed

content/hardware/03.nano/boards/nano-matter/tutorials/user-manual/content.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ software:
2222

2323
This user manual will guide you through a practical journey covering the most interesting features of the Arduino Nano Matter. With this user manual, you will learn how to set up, configure and use this Arduino board.
2424

25+
![RGB Lightbulb with Nano Matter](assets/matter-google.gif)
26+
2527
## Hardware and Software Requirements
2628
### Hardware Requirements
2729

@@ -611,6 +613,13 @@ void decommission_handler() {
611613
}
612614
}
613615
```
616+
The main code functions are explained bellow:
617+
618+
- The temperature sensor object is created with the `MatterTemperature matter_temp_sensor;` statement. To initiate it, in the `setup()` function, we used `matter_temp_sensor.begin();`
619+
- The `decommission_handler()` lets us unpair the device from a previous platform.
620+
- The microcontroller internal temperature is measured with the function `getCPUTemp();`.
621+
- The temperature value is advertized using the `matter_temp_sensor.set_measured_value_celsius(current_cpu_temp);` function.
622+
614623
After uploading the code to the Nano Matter, verify it is decommissioned from any other service previously used. For this, open the Serial Monitor and reset the board.
615624

616625
If it is not decommissioned you will see temperature readings printed in the Serial Monitor. To decommission it follow these steps:

0 commit comments

Comments
 (0)