Constructors
constructor
Parameters
- func: (frame: ZclFrame) => Promise<Type>
- frame: ZclFrame
- timeout: number
Optional
sendPolicy: SendPolicyOptional
lastError: ErrorOptional
resolve: (value: Type) => voidOptional
reject: (error: Error) => void
Properties
Static
defaultSendPolicy
defaultSendPolicy: { [key: number]: SendPolicy } = ... Methods
addCallbacks
addCallbacks( resolve: (value: Type) => void, reject: (error: Error) => void,): void Parameters
- resolve: (value: Type) => void
- reject: (error: Error) => void
Returns void
reject
reject(error?: Error): void
resolve
resolve(value: Type): void