23 Commits

Author SHA1 Message Date
2dec413e94
Merge pull request #111 from jncraton/lpf2hub-consts
All checks were successful
continuous-integration/drone/push Build is passing
Replace magic numbers with constants
2020-12-22 15:20:02 -08:00
d1fe3a49e4 Fixed Typescript defs
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-22 15:17:59 -08:00
Jon Craton
7bc9603952 Replace magic numbers with constants
This replaces several magic numbers in the lpf2hub implementation with constants that were already present in src/consts.ts. This should enhance readability and maintainability. Comments that were made redundant by including the constant names have been removed.

There are still quite a few magic numbers in here that could be replaced, particularly in the byte arrays used to build messages, but I didn't attempt to clean those up.
2020-10-16 15:05:01 -04:00
Léo Bonnargent
4394030f6b Fix message length comparison 2020-06-28 17:48:13 +02:00
Ben Rogers
232edb2ffb Moves away from callbacks, towards more promises
Allows more use of await
Removed some unnecessary awaits, some unnecessary Promise wrappers
2020-03-03 21:29:52 +00:00
e721e0f5bf Updated docs, readme, version 2020-02-10 11:17:43 -08:00
d329ce6191 Added support for Spike Prime motors
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-13 14:30:43 -08:00
ea20b1bee0 Can not retrieve human readable device type from devices. Updated web bluetooth example 2020-01-13 12:17:51 -08:00
f7e86d32cf Added setSpeed, virtual port multiparam options
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-09 12:05:05 -08:00
b43b59e526 Virtual ports tested
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-09 10:56:59 -08:00
bf721eddf6 Virtual port attachment and detachment
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-08 15:37:07 -08:00
afa7c74f82 Merge branch 'feature/devices' of github.com:nathankellenicki/node-poweredup into feature/devices
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-08 14:38:57 -08:00
673f5ffcb6 Start of port combining 2020-01-08 14:38:51 -08:00
290f469b47 Device events emit value objects 2019-12-26 18:18:55 -08:00
2dabeddbab More WeDo 2.0 devices 2019-12-20 12:35:09 -08:00
035017617e Bug fixes, hubs now wait for hub properties before being connected 2019-12-19 15:44:35 -08:00
a5a9b2e880 Control+ (Technic Medium Hub) devices, renamed hubs to be more inline with official naming convention
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-18 17:13:21 -08:00
195c0d5123 HubLED and MoveHubTiltSensor
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-18 15:20:20 -08:00
2e06a17e5d CurrentSensor
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-18 12:04:39 -08:00
c1b8697a56 VoltageSensor
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-18 11:45:12 -08:00
de4feb0b89 Added functions to wait for port attachments
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-18 10:24:39 -08:00
364089b703 Power to speed when rotating by angle
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-17 17:23:27 -08:00
225f331811 Better directory structure 2019-12-16 17:31:22 -08:00