UNPKG

@hangtime/grip-connect-cli

Version:
85 lines 2.55 kB
/** * Device definition for the PB-700BT dynamometer. */ import { PB700BT } from "@hangtime/grip-connect-runtime"; import { printResult } from "../utils.js"; const pb700bt = { name: "PB-700BT", class: PB700BT, actions: [ { name: "Battery", description: "Read battery level", run: async (device) => { const d = device; printResult("Battery:", await d.battery()); }, }, { name: "Certification", description: "Read certification info", run: async (device) => { const d = device; printResult("Certification:", await d.certification()); }, }, { name: "Firmware", description: "Read firmware version", run: async (device) => { const d = device; printResult("Firmware:", await d.firmware()); }, }, { name: "Hardware", description: "Read hardware version", run: async (device) => { const d = device; printResult("Hardware:", await d.hardware()); }, }, { name: "Manufacturer", description: "Read manufacturer info", run: async (device) => { const d = device; printResult("Manufacturer:", await d.manufacturer()); }, }, { name: "Model", description: "Read model number", run: async (device) => { const d = device; printResult("Model:", await d.model()); }, }, { name: "PnP ID", description: "Read PnP identifier", run: async (device) => { const d = device; printResult("PnP ID:", await d.pnp()); }, }, { name: "Software", description: "Read software version", run: async (device) => { const d = device; printResult("Software:", await d.software()); }, }, { name: "System ID", description: "Read system identifier", run: async (device) => { const d = device; printResult("System ID:", await d.system()); }, }, ], }; export default pb700bt; //# sourceMappingURL=pb-700bt.js.map