Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@falconeta/capacitor-plugin-matter

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@falconeta/capacitor-plugin-matter

plugin that handle the Matter Application protocol

  • 0.0.81
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@falconeta/capacitor-plugin-matter

WORK IN PROGRESS!

plugin that handle the Matter Application protocol

Make SDK from CHIP repo

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)

Android

  1. see android_building.md guide under /docs/guides (Building Android CHIPTool from scripts step after preconfiguration)
  2. compress the content of the folder examples/android/CHIPTool/app/libs with libs.zip name.
  3. upload the zip on your google drive
  4. modify or create your custom post-install.js script with file ID and the google key

IOS

  1. bootstrap project
  2. under src/darwin/Framework folder launch xcodebuild -target "Matter" -sdk iphoneos -configuration Release OTHER_CFLAGS='${inherited} -Wno-unguarded-availability-new'
  3. compress the folder src/darwin/Framework/build/Release-iphoneos/Matter.framework with Matter.framework.zip name.
  4. upload the zip on your google drive
  5. modify or create your custom post-install.js script with file ID and the google key

Install

npm install @falconeta/capacitor-plugin-matter
npx cap sync

API

configure(...)

configure(options: { deviceControllerKey?: string; caRootCert?: string; fabricId: string; vendorId: number; }) => Promise<void>
ParamType
options{ deviceControllerKey?: string; caRootCert?: string; fabricId: string; vendorId: number; }

clear()

clear() => Promise<void>

qrCodeCommissioning(...)

qrCodeCommissioning(options: { deviceId: string; qrCodeId: string; ssid: string; ssidPassword: string; }) => Promise<{ deviceType: string; }>
ParamType
options{ deviceId: string; qrCodeId: string; ssid: string; ssidPassword: string; }

Returns: Promise<{ deviceType: string; }>


manualCodeCommissioning(...)

manualCodeCommissioning(options: { deviceId: string; manualCode: string; ssid: string; ssidPassword: string; }) => Promise<{ deviceType: string; }>
ParamType
options{ deviceId: string; manualCode: string; ssid: string; ssidPassword: string; }

Returns: Promise<{ deviceType: string; }>


getCerts()

getCerts() => Promise<{ deviceControllerKey: string; caRootCert: string; }>

Returns: Promise<{ deviceControllerKey: string; caRootCert: string; }>


commandOnOff(...)

commandOnOff(options: { deviceId: string; value: boolean; endpointId: number; }) => Promise<void>
ParamType
options{ deviceId: string; value: boolean; endpointId: number; }

getEndpoint(...)

getEndpoint<T>(options: { deviceId: string; endpointId: number; }) => Promise<{ data: T; }>
ParamType
options{ deviceId: string; endpointId: number; }

Returns: Promise<{ data: T; }>


getCluster(...)

getCluster<T>(options: { deviceId: string; endpointId: number; clusterId: number; }) => Promise<{ data: T; }>
ParamType
options{ deviceId: string; endpointId: number; clusterId: number; }

Returns: Promise<{ data: T; }>


readAttribute(...)

readAttribute(options: AttributePath) => Promise<{ value: string; }>
ParamType
optionsAttributePath

Returns: Promise<{ value: string; }>


subscribeAttribute(...)

subscribeAttribute(options: SubscriberOptions) => Promise<void>
ParamType
optionsSubscriberOptions

openCommissioningWindow(...)

openCommissioningWindow(options: { deviceId: string; discriminator: number; duration: number; setupPIN: number; }) => Promise<{ manualCode: string; }>
ParamType
options{ deviceId: string; discriminator: number; duration: number; setupPIN: number; }

Returns: Promise<{ manualCode: string; }>


removeFabric(...)

removeFabric(options: { deviceId: string; fabricId: string; }) => Promise<void>
ParamType
options{ deviceId: string; fabricId: string; }

removeAllFabric(...)

removeAllFabric(options: { deviceId: string; }) => Promise<void>
ParamType
options{ deviceId: string; }

addListener(string, ...)

addListener<T>(eventName: string, listenerFunc: AttributeChangeListener<T>) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventNamestring
listenerFuncAttributeChangeListener<T>

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

AttributePath
PropType
deviceIdstring
endpointIdnumber
clusterIdnumber
attributeIdnumber
EventOptions
PropType
eventNamestring
minnumber
maxnumber
PluginListenerHandle
PropType
remove() => Promise<void>

Type Aliases

SubscriberOptions

EventOptions & AttributePath

AttributeChangeListener

(data: T): void

Keywords

FAQs

Package last updated on 25 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc