cycling_sensors (1.11.1)
Published 2026-10-04 09:38:09 +00:00 by Platform
Installation
dart pub add cycling_sensors:1.11.1 --hosted-url=About this package
Sensor hub for smart trainers and BLE sensors: FTMS, Cycling Power, Heart Rate and CSC parsers, FTMS control, source priority, a scripted fake. Dart port of CSharp.Package.Cycling.Sensors and the four protocol packages.
cycling_sensors
Sensor hub for smart trainers and BLE sensors: FTMS, Cycling Power, Heart Rate and CSC parsers, FTMS control, source priority, a scripted fake. Dart port of CSharp.Package.Cycling.Sensors and the four protocol packages.
dart test
Traps
- The simulated trainer answers its control point for real (
requestControl,setTargetPower,setIndoorBikeSimulationParameters,reset): the control point is where every real trainer bug has been, and a simulator that ignored commands would have caught none. - The test fake's control-point responses are delivered asynchronously on purpose.
FitnessMachineControlPointawaits its lock before it records the pending op code, so a synchronous response arrives first and is dropped, and every control-point test then times out after 5 s. BleTransportand friends live inpackage:bluetoothand are re-exported here so consumers keep one import.
The code carries no comments, and test/conventions_test.dart fails on one: a name or a named
constant says what, and the why goes here or in the commit message.
Details
Assets (1)
Versions (12)
View all
1.11.1.tar.gz
462 KiB