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