Skip to content

Instantly share code, notes, and snippets.

@nurikk
Last active September 4, 2020 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nurikk/50a2147cf41b0d2fa44c7ee6aeaa03e5 to your computer and use it in GitHub Desktop.
Save nurikk/50a2147cf41b0d2fa44c7ee6aeaa03e5 to your computer and use it in GitHub Desktop.
  1. Touchlink improvements: ⋅⋅⋅We need to add (3) new api's for Touchlink
 interface ScanResult {
     address: string | number;
 }

 interface Touchlink {
     scanRequest(): Promise<ScanResult[]>;
     identifyRequest(scanResult: ScanResult): Promise<void>;
     resetToFactoryNew(scanResult: ScanResult): Promise<void>;
 }
  1. Api to edit arbitrary configuration parameter from configuration.yaml (need to validate config before saving)
  interface Touchlink {
     setConfig(path: string, value: unknown): Promise<void>;
 }
  1. Api to restart z2m
  interface Restart {
     restart(force: boolean): Promise<void>;
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment