Skip to content

NinebotMobileTeam/NBIoTBleKit-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBIoTBleKit

CocoaPods compatible

The NBIoTBleKit SDK allows you to build your own APP for controlling Segway vehicles via Bluetooth quickly.

Features for 1.1.0

  • Add helmet lock's unlock commands
  • Add helmet information query function

Installation

CocoaPods

For NBIoTBleKit, use the following entry in your Podfile:

pod 'NBIoTBleKit', '~> 1.1.0'

Then run pod install.

In any file you'd like to use NBIoTBleKit in, don't forget to import the framework with import NBIoTBleKit.

If you're trying update, use pod update instead pod install

Manually

Drag NBIoTBleKit.framework and add to your project.

Simples

We have provided one sample projects in the repository. To use it download the repo and open NBIoTBle.xcworkspace. You'll see two schemes: NBIoTBleKitDemo and NBIoTBleKitDemoSwift - select NBIoTBleKitDemoSwift, fill your platform code and secret in Appdeleagate.swift and then build & run! Source files for these are in the Examples directory in project navigator. Have fun!

ReactNative Demo

  • run yarn install
  • run yarn start
  • change the ip address in ViewController.m
  • run target NBIoTKitReactNativeDemo

Note: Run it on real device, the simulator do not support the bluetooth equipment