Skip to content

Commit e61a2de

Browse files
committed
wip
1 parent 8446528 commit e61a2de

File tree

8 files changed

+754
-39
lines changed

8 files changed

+754
-39
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ add_definitions(-DGIT_COMMIT_HASH="${GIT_COMMIT_HASH}")
99
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
1010
project(xiao_esp32c6_wifi_sensor)
1111

12-
idf_build_set_property(
13-
CXX_COMPILE_OPTIONS
14-
"-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
1512
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)

README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,20 @@ The sensor publishes data to an MQTT broker in the following JSON format:
5151
```json
5252
{
5353
"ID": "7i29r9k9ltaxmbev",
54-
"RSSI": -54,
55-
"battery_voltage": 4.13,
56-
"temperature": "24.28",
57-
"humidity": "29.32",
58-
"pressure": "999.54",
59-
"connection_duration_ms": 1672
54+
"RSSI": -61,
55+
"battery_voltage": 3.96,
56+
"battery_charge": 76,
57+
"temperature": 4.72,
58+
"humidity": 67.85,
59+
"pressure": 1006.84,
60+
"connection_duration_ms": 1411
6061
}
6162
```
6263

6364
- **ID**: Unique identifier of the sensor
6465
- **RSSI**: Wi-Fi signal strength in dBm
6566
- **battery_voltage**: Current battery voltage
67+
- **battery_charge**: Current battery charge percentage
6668
- **temperature**: Temperature reading from the BME sensor
6769
- **humidity**: Humidity reading from the BME sensor
6870
- **pressure**: Pressure reading from the BME sensor
@@ -250,9 +252,15 @@ Follow these steps to set up your Smart IoT Sensor:
250252
1. **Clone the Repository**
251253
252254
```bash
253-
git clone https://github.com/BegoonLab/xiao-esp32c6-wifi-sensor
255+
git clone --depth 1 https://github.com/BegoonLab/xiao-esp32c6-wifi-sensor
256+
```
257+
258+
```bash
254259
cd xiao-esp32c6-wifi-sensor
255-
git submodule update --init --recursive
260+
```
261+
262+
```bash
263+
python scripts/install.py
256264
```
257265

258266
2. **Install Dependencies**
@@ -372,6 +380,8 @@ Pairing options:
372380

373381
<img alt="SensorXIAO_Matter_Pairing_QR.png" src="assets/SensorXIAO_Matter_Pairing_QR.png" width="100"/>
374382

383+
For production use case see the information [here](https://docs.espressif.com/projects/esp-matter/en/latest/esp32c6/production.html#the-esp-matter-mfg-tool-example).
384+
375385
## Contributing
376386

377387
Contributions are welcome! Please follow these steps:

0 commit comments

Comments
 (0)