Latest 0.2.0
Homepage https://github.com/aengintech/silta-bluetooth-ios
License Aengin inc
Platforms ios 8.0, requires ARC
Authors

Aengin SiltaBluetooth SDK for Apple iOS

Table of Contents

Introduction

SiltaBluetooth applies to Bluetooth Low Energy (BLE) App development on Apple iOS environment.

Its main feature is to control, monitor, and track any BLE devices or module.


How to Use

Before Installation

Availability IOS (8.0 and later)

Installation

1) You can install our SDK via CocoaPods.

pod 'SiltaBluetooth', '~> 0.2.0'

2) Or, you can simply download “SiltaBluetooth.framework."

click me

Application

Swift:

First, you need to have the SiltaManager.

let silta = SiltaBluetooth.getIManager()

Then, delegate the SDK.

silta?.delegate = self

You are now ready to get started with App development.

Library

Pack the information of one single BLE device.

public class Bluetooth : NSObject {

  public var manufacturer: String?
  public var UUID: String?
  public var powerLevel: NSNumber?
  public var RSSI: NSNumber?
  public var name: String?
  public var live: Bool!
  public func accuracy() -> Int
  override public func isEqual(object: AnyObject?) -> Bool
  override public var hash: Int { get }
}

Command

public enum ICommand {

  case Buzzer
}

Functions to control BLE device.

public protocol ISiltaBluetoothManager : NSObjectProtocol {

  public var delegate: SiltaBluetoothDelegate? { get set } //SiltaBluetoothDelegate
  public func start() //Enable the bluetooth scanning.
  public func stop() //Stop scanning.
  public func fireCommand(command: SiltaBluetooth.ICommand, ble: SiltaBluetooth.Bluetooth) //Give commands to Bluetooth devices.
}

Functions to control, monitor, and track any BLE devices or module..

@objc public protocol SiltaBluetoothDelegate : NSObjectProtocol {

  optional public func bluetoothDeviceListBeenRenewed(bles: [SiltaBluetooth.Bluetooth]) //Device list updated.
  optional public func bluetoothExecuteCommandSuccess(ble: SiltaBluetooth.Bluetooth) //Commands executed successfully.
  optional public func bluetoothExecuteCommandFailure(ble: SiltaBluetooth.Bluetooth)
  optional public func bluetoothDisabled() //BLE devices not enabled.
  optional public func bluetoothUnauthorized() //BLE devices not authorized to use.
  optional public func bluetoothUnsupported() //No BLE devices connected.
}

Latest podspec

{
    "name": "SiltaBluetooth",
    "version": "0.2.0",
    "summary": "SiltaBluetooth for easy to use BLE.",
    "homepage": "https://github.com/aengintech/silta-bluetooth-ios",
    "license": {
        "type": "Aengin inc",
        "file": "LICENSE"
    },
    "authors": {
        "Aengin": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/aengintech/silta-bluetooth-ios.git",
        "tag": "0.2.0"
    },
    "ios": {
        "preserve_paths": "Framework/*.{framework}",
        "vendored_frameworks": "Framework/SiltaBluetooth.framework",
        "xcconfig": {
            "LD_RUNPATH_SEARCH_PATHS": ""$(PODS_ROOT)/Framework""
        },
        "resources": "Framework/SiltaBluetooth.framework"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This