forked from espressif/arduino-esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMatter.h
41 lines (34 loc) · 1.03 KB
/
Matter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include <sdkconfig.h>
#ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
#include <Arduino.h>
#include <esp_matter.h>
using namespace esp_matter;
class ArduinoMatter {
public:
static inline String getManualPairingCode() {
// return the pairing code for manual pairing
return String("34970112332");
}
static inline String getOnboardingQRCodeUrl() {
// return the URL for the QR code for onboarding
return String("https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT:Y.K9042C00KA0648G00");
}
static void begin();
static bool isDeviceCommissioned();
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
static bool isWiFiConnected();
#endif
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
static bool isThreadConnected();
#endif
static bool isDeviceConnected();
static void decommission();
// list of Matter EndPoints Friend Classes
friend class MatterOnOffLight;
friend class MatterDimmableLight;
protected:
static void _init();
};
extern ArduinoMatter Matter;
#endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */