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. FitnessMachineControlPoint awaits 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.
  • BleTransport and friends live in package:bluetooth and 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
Pub
2026-10-04 09:38:09 +00:00
211
462 KiB
Assets (1)
1.11.1.tar.gz 462 KiB
Versions (12) View all
1.11.1 2026-10-04
1.11.0 2026-09-29
1.10.0 2026-09-26
1.9.0 2026-09-21
1.8.0 2026-09-21