https://github.com/codeinversion/sensors-swift-trainers
https://github.com/codeinversion/sensors-swift-trainers
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/codeinversion/sensors-swift-trainers
- Owner: codeinversion
- License: mit
- Created: 2017-05-23T02:09:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T15:51:01.000Z (almost 6 years ago)
- Last Synced: 2025-04-05T06:47:43.337Z (about 1 year ago)
- Language: Swift
- Size: 2.34 MB
- Stars: 24
- Watchers: 2
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bike Trainers Plugin for Swifty Sensors




[](https://cocoapods.org/pods/SwiftySensorsTrainers)
This [Swifty Sensor](https://github.com/kinetic-fit/sensors-swift/) plugin adds Services and Characteristics for various Bike Trainers.
## Installation
### CocoaPods
```
use_frameworks!
pod 'SwiftySensors'
pod 'SwiftySensorsTrainers'
```
### Manual
Copy all of the swift files in the `Sources` directory into you project. Also copy the Headers and Libraries directories. Include the appropriate libs for your project. You may need to add some includes to the header files in your **Bridging Header** *(and create one if you don't have one)*.
### Swift Package Manager
This library is not compatible with Swift Package Manager **yet**. It relies upon some Objective C SDK libraries and Objective C libs are not supported in the SPM yet.
## Usage
When setting up your SensorManager, simply add the various Trainer Services to the scan list.
```
import SwiftySensors
import SwiftySensorsTrainers
// Customize what services you want to scan for
SensorManager.instance.setServicesToScanFor([
CyclingPowerService.self,
...
InRide2Service.self,
SmartControlService.self,
CycleOpsService.self
])
## Known bugs
None.
## ToDos