Skip to content

Commit

Permalink
Experimental support for ezsp (Koenkk#317)
Browse files Browse the repository at this point in the history
* blank ezsp adapter

* next

* start describe multicast

* try to start network

* form network

* started

* try to make socket support

* forgoten reset on connect

* permit join

* next step

* polices and other

* step

* step

* small fixes

* small fix

* next

* working with request

* temporary block nodeDescriptor request

* starting rewrite uart communication

* rewrited uart

* some cleanup

* queue

* fix and logging

* active endpoints

* Source routing

* work with form network

* additional configs

* fix

* isolated serialDriver

* fix security issue
some additional logs

* fix ieee in device annce

* try to get Simple Descriptor... but not work yet

* del yargs

* leave device

* simple decriptor start

* simple descriptor

* descriptor & debug

* sendZclFrameToEndpoint start

* waitfor

* getCoordinator

* bind

* remove

* lqi table

* Unbind

* fix bind

* version

* fix lqi

* restructure zdo requests

* sequence for waitress zdo request

* commands queue

* some cleanup

* some logs and restructure

* waitress resolve result

* uart queue and waiting

* fix networkInit proc

* small init fix. when network was down

* eslint fix

* eslint fix format

* fix

* fix lint error

* fix tests

* test coverage for waitress

* ignore test coverage

Co-authored-by: Киров Илья <kirov@bars.group>
Co-authored-by: mrG1K <mr@g1k.ru>
  • Loading branch information
3 people authored Mar 2, 2021
1 parent 5d7be7c commit 462f0f8
Show file tree
Hide file tree
Showing 18 changed files with 5,810 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/adapter/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ abstract class Adapter extends events.EventEmitter {
const {ZStackAdapter} = await import('./z-stack/adapter');
const {DeconzAdapter} = await import('./deconz/adapter');
const {ZiGateAdapter} = await import('./zigate/adapter');
type AdapterImplementation = typeof ZStackAdapter | typeof DeconzAdapter | typeof ZiGateAdapter;
const {EZSPAdapter} = await import('./ezsp/adapter');
type AdapterImplementation = (typeof ZStackAdapter | typeof DeconzAdapter | typeof ZiGateAdapter
| typeof EZSPAdapter);

let adapters: AdapterImplementation[];
const adapterLookup = {zstack: ZStackAdapter, deconz: DeconzAdapter, zigate: ZiGateAdapter};
const adapterLookup = {zstack: ZStackAdapter, deconz: DeconzAdapter, zigate: ZiGateAdapter,
ezsp: EZSPAdapter};
if (serialPortOptions.adapter) {
if (adapterLookup.hasOwnProperty(serialPortOptions.adapter)) {
adapters = [adapterLookup[serialPortOptions.adapter]];
Expand Down
516 changes: 516 additions & 0 deletions src/adapter/ezsp/adapter/ezspAdapter.ts

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/adapter/ezsp/adapter/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* istanbul ignore file */
/* eslint-disable */
import EZSPAdapter from './ezspAdapter';

export {
EZSPAdapter,
};
Loading

0 comments on commit 462f0f8

Please sign in to comment.