plugin that handle the Matter Application protocol
by default, plugins use standard Matter SDK (v 1.1.0.1) but if possible to make your custom SDK by connectedhomeip project (https://github.com/project-chip/connectedhomeip)
- see
android_building.md
guide under /docs/guides (Building Android CHIPTool from scripts
step after preconfiguration) - compress the content of the folder
examples/android/CHIPTool/app/libs
withlibs.zip
name. - upload the zip on your google drive
- modify or create your custom
post-install.js
script with file ID and the google key
- bootstrap project
- under
src/darwin/Framework
folder launchxcodebuild -target "Matter" -sdk iphoneos -configuration Release OTHER_CFLAGS='${inherited} -Wno-unguarded-availability-new'
- compress the folder
src/darwin/Framework/build/Release-iphoneos/Matter.framework
withMatter.framework.zip
name. - upload the zip on your google drive
- modify or create your custom
post-install.js
script with file ID and the google key
npm install @falconeta/capacitor-plugin-matter
npx cap sync
configure(...)
clear()
qrCodeCommissioning(...)
manualCodeCommissioning(...)
getCerts()
commandOnOff(...)
getEndpoint(...)
getCluster(...)
readAttribute(...)
subscribeAttribute(...)
openCommissioningWindow(...)
removeFabric(...)
removeAllFabric(...)
addListener(string, ...)
- Interfaces
- Type Aliases
configure(options: { deviceControllerKey?: string; caRootCert?: string; fabricId: string; vendorId: number; }) => Promise<void>
Param | Type |
---|---|
options |
{ deviceControllerKey?: string; caRootCert?: string; fabricId: string; vendorId: number; } |
clear() => Promise<void>
qrCodeCommissioning(options: { deviceId: string; qrCodeId: string; ssid: string; ssidPassword: string; }) => Promise<{ deviceType: string; }>
Param | Type |
---|---|
options |
{ deviceId: string; qrCodeId: string; ssid: string; ssidPassword: string; } |
Returns: Promise<{ deviceType: string; }>
manualCodeCommissioning(options: { deviceId: string; manualCode: string; ssid: string; ssidPassword: string; }) => Promise<{ deviceType: string; }>
Param | Type |
---|---|
options |
{ deviceId: string; manualCode: string; ssid: string; ssidPassword: string; } |
Returns: Promise<{ deviceType: string; }>
getCerts() => Promise<{ deviceControllerKey: string; caRootCert: string; }>
Returns: Promise<{ deviceControllerKey: string; caRootCert: string; }>
commandOnOff(options: { deviceId: string; value: boolean; endpointId: number; }) => Promise<void>
Param | Type |
---|---|
options |
{ deviceId: string; value: boolean; endpointId: number; } |
getEndpoint<T>(options: { deviceId: string; endpointId: number; }) => Promise<{ data: T; }>
Param | Type |
---|---|
options |
{ deviceId: string; endpointId: number; } |
Returns: Promise<{ data: T; }>
getCluster<T>(options: { deviceId: string; endpointId: number; clusterId: number; }) => Promise<{ data: T; }>
Param | Type |
---|---|
options |
{ deviceId: string; endpointId: number; clusterId: number; } |
Returns: Promise<{ data: T; }>
readAttribute(options: AttributePath) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
AttributePath |
Returns: Promise<{ value: string; }>
subscribeAttribute(options: SubscriberOptions) => Promise<void>
Param | Type |
---|---|
options |
SubscriberOptions |
openCommissioningWindow(options: { deviceId: string; discriminator: number; duration: number; setupPIN: number; }) => Promise<{ manualCode: string; }>
Param | Type |
---|---|
options |
{ deviceId: string; discriminator: number; duration: number; setupPIN: number; } |
Returns: Promise<{ manualCode: string; }>
removeFabric(options: { deviceId: string; fabricId: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ deviceId: string; fabricId: string; } |
removeAllFabric(options: { deviceId: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ deviceId: string; } |
addListener<T>(eventName: string, listenerFunc: AttributeChangeListener<T>) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName |
string |
listenerFunc |
AttributeChangeListener<T> |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Prop | Type |
---|---|
deviceId |
string |
endpointId |
number |
clusterId |
number |
attributeId |
number |
Prop | Type |
---|---|
eventName |
string |
min |
number |
max |
number |
Prop | Type |
---|---|
remove |
() => Promise<void> |
(data: T): void