* Added test for device matching
Mocking the scanning and testing the connect() of each backend would be
better, but that requires more refactoring with prior agreement.
Added unittest2 dependency for subTest support, other solutions are
available.
* Fixed matching for Move Hub
If other BLE devices are around, an exception occurs on hub_mac.lower() if
default hub_mac (None) is used.
* fixup! Added test for device matching
Removed unittest2 dependency and features
* Use setuptools to allow the extras_require to work in python3.6
This also declares some hidden dependencies for the underlying
connection protocols, but note that they are normally reliant
on system-packaged versions, which is a bit less than optimal.
* In message, on assert of incoming type, note failing type
* In utilities, guard against truncated input.
* In demo allow for specifying different connections and demos on command line
Also addresses a crash in led demo where parameters x and y were not provided
to an empty lamba that was passed in.
* Remove commentted line, apply black formatting
* Raise TypeError when an incorrectly-typed message is received
* Apply black automatic formatting to the utilities module
* - Updated Port-Numbers (New Firmware 2.0.00.0017)
- Skipping Device without Mac-Address
(Seems to occur randomly after Firmware-Update,
referring to https://github.com/LLK/scratch-vm/issues/2230 )
- Fixed racecondition in Hub.send()
(Reply could come before entering _sync_lock)
* - fixed Unit-Tests (Changed Port-Numbers)
- moved the write-call in hub.send() outside the lock