50 Commits

Author SHA1 Message Date
023b141c4d Better handling of device initialisation, implemented more modes
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-16 17:07:43 -08:00
6beeda5df7 Implemented methods for retrieving hubs and devices 2019-12-11 17:20:35 +09:00
5c03e5c3b6 More refactoring 2019-12-10 08:15:21 +09:00
7fdc754084 Start of hub refactor 2019-12-10 07:23:33 +09:00
f9cea9a6bf Yay, port object is no longer a thing 2019-12-08 22:59:25 -08:00
8ffc60b924 attachedDevices now a map 2019-12-07 13:19:16 -08:00
4af1d3d69b Added autosubscribe when adding eventlisteners 2019-12-06 17:31:12 -08:00
d453fe52fb Basic implementation of BasicMotor types 2019-12-06 11:31:56 -08:00
5a3211a560
Merge pull request #54 from aileo/attach
Emit attach event any case
2019-12-03 09:57:56 -08:00
0d076aa7e1
Merge pull request #52 from aileo/hub-disconnect
Add doc to hub's disconnect event
2019-12-03 09:56:56 -08:00
Leo Bonnargent
55bcafa637 Emit attach event any case 2019-11-20 14:42:23 +01:00
Leo Bonnargent
abd21a88b2 Add doc to hub's disconnect event 2019-11-18 09:14:32 +01:00
e96b7bd47d Added RSSI back in, as reported by the hub 2019-11-13 16:05:23 -08:00
Leo Bonnargent
89ad6fe39b Use primaryMACAddress naming for consistency 2019-11-13 23:30:45 +01:00
Leo Bonnargent
655b21c0e9 Merge branch 'master' into macaddress 2019-11-13 23:26:02 +01:00
64e5743893
Merge pull request #45 from nutki/pr-8
Extended port information requests
2019-11-13 14:16:02 -08:00
Leo Bonnargent
e65c8eb71e Merge branch 'master' into macaddress 2019-11-13 21:27:04 +01:00
Leo Bonnargent
abbbd218ee Add mac address to hub/lpf2hub
- should close nathankellenicki/node-poweredup/issues/46
2019-11-13 20:58:20 +01:00
Michal Szafranski
5f13c98529 Moved toBin and toHex to utils 2019-11-12 20:41:18 +01:00
Michal Szafranski
8e144c8311 more verbose port information output 2019-11-12 09:06:42 +01:00
Michal Szafranski
d2f71aa993 Voltage readout added for duplo train and fixed for PUP remote 2019-11-12 08:47:05 +01:00
8ff0664641 Made Control+ tilt and accelerometer behave like normal devices 2019-11-11 11:16:49 -08:00
6315f54a23 Fixed double disconnect bug, added hardware versions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2019-11-10 20:40:59 -08:00
3dc1076a88
Merge pull request #36 from nutki/pr-4
allow switching to mode 0 in Hub.subscribe()
2019-11-10 12:30:40 -08:00
be132bd9e8
Merge pull request #34 from nutki/pr-2
allow case insensitive port names
2019-11-10 12:23:43 -08:00
Michal Szafranski
172c1b826c Firmware version is encoded with BCD 2019-11-05 22:08:33 +01:00
Michal Szafranski
98f1ca84b0 allow switching to mode 0 2019-11-02 17:57:04 +01:00
Michal Szafranski
0b1c5008f3 allow case insensitive port names 2019-11-02 17:39:50 +01:00
cc1571dc26 Added initial support for LEGO Technic CONTROL+
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2019-08-06 14:52:14 -07:00
e959230a22 Correct voltage and current readings 2019-04-25 21:48:10 -07:00
1dc583e5f2 Added current back
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2019-04-25 14:25:10 -07:00
5ad9bc5748 Now supports PUP Hub firmware 1.1.00.0004 - rotation works on Boost tacho motor. Also manual setup of virtual ports.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2019-04-12 15:14:00 -07:00
d70d66e3dc Working example of web bluetooth 2019-03-18 14:57:41 -07:00
f23e5ad679 Seperated BLEDevice out into NobleDevice and WebBLEDevice usingi nterfaces 2019-03-18 11:16:54 -07:00
57ceb4cbcc Fixed race condition on second device 2019-02-07 15:35:48 -08:00
3db4391041 Kinda working, but on connect of second device 2019-02-07 11:58:58 -08:00
5efc38b213 Code cleanup 2019-02-06 10:01:44 -08:00
79542acef1 BLEDevice partially working for noble devices 2019-02-05 16:15:09 -08:00
f009bc3e2a Prevent multiple connection attempts 2019-02-04 16:14:31 -08:00
748c886df5 Removed stop/start scan on discovery 2019-01-30 09:47:22 -08:00
ba44189faa Made discovery more reliable 2019-01-29 20:46:51 -08:00
4185f79c52 Made name discovery a little more robust 2019-01-29 19:47:02 -08:00
bbcade6bb3 Wait for second advertisement packet before reading hub name 2019-01-29 19:02:11 -08:00
110f65b291 WeDo 2.0 voltage reporting 2019-01-22 10:32:19 -08:00
adaac287cc Initial pass at wedo2 voltage and current 2019-01-18 17:35:48 -08:00
86e84395e1 Moved to jsdoc 2019-01-18 16:11:55 -08:00
47a0f56d0d Now fetches firmware revisions for WeDo 2.0 Smart Hubs 2019-01-18 14:46:31 -08:00
c6c470e863 Initial pass at getting the firmware version 2019-01-16 11:41:44 -08:00
1e787f2962 Added hardStopMotor to motor controls 2019-01-08 13:24:49 -08:00
2e7fe13fed File reorg 2019-01-03 10:42:43 -08:00