inventoresed
Version:
Z-Wave driver written entirely in JavaScript/TypeScript
17 lines (14 loc) • 486 B
text/typescript
import { FunctionType } from "@zwave-js/serial";
// Test mock for isFunctionSupported to control which commands are getting used
export function isFunctionSupported_NoBridge(fn: FunctionType): boolean {
switch (fn) {
case FunctionType.SendDataBridge:
case FunctionType.SendDataMulticastBridge:
return false;
}
return true;
}
// Test mock for isFunctionSupported to control which commands are getting used
export function isFunctionSupported_All(): boolean {
return true;
}