@openhps/sphero
Version:
Open Hybrid Positioning System - Sphero component
17 lines (15 loc) • 320 B
text/typescript
import {
CommandGenerator,
DeviceId,
SomethingApi,
ICommandWithRaw
} from './types';
export default (generator: CommandGenerator) => {
const encode = generator(DeviceId.somethingAPI);
return {
something5: (): ICommandWithRaw =>
encode({
commandId: SomethingApi.something5
})
};
};