@openhps/sphero
Version:
Open Hybrid Positioning System - Sphero component
30 lines • 961 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const types_1 = require("./types");
exports.default = (generator) => {
const encode = generator(types_1.DeviceId.powerInfo);
return {
batteryVoltage: () => encode({
targetId: 0x11,
commandId: types_1.PowerCommandIds.batteryVoltage
}),
sleep: () => encode({
targetId: 0x11,
commandId: types_1.PowerCommandIds.sleep
}),
something2: () => encode({
commandId: types_1.PowerCommandIds.something2
}),
something3: () => encode({
commandId: types_1.PowerCommandIds.something3
}),
something4: () => encode({
commandId: types_1.PowerCommandIds.something4
}),
wake: () => encode({
targetId: 0x11,
commandId: types_1.PowerCommandIds.wake
})
};
};
//# sourceMappingURL=power.js.map