目录
目录README.md

Bike Trainers Plugin for Swifty Sensors

iOS macOS Swift 3.0 License CocoaPods

This Swifty Sensor 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
关于
2.4 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号