25
Bluetooth connecting Iot Bluetoothライブラリーの概要とBluetoothからモバイル、ハードへの接続機器の紹介

Bluetooth connecting iot bluetooth

Embed Size (px)

Citation preview

Page 1: Bluetooth connecting iot bluetooth

Bluetooth connecting IotBluetoothライブラリーの概要とBluetoothからモバイル、ハードへの接続機器の紹介

Page 2: Bluetooth connecting iot bluetooth

なぜBluetoothに着目しているか?

Page 3: Bluetooth connecting iot bluetooth

シンギュラリティーの前

Page 4: Bluetooth connecting iot bluetooth

今はインターネットだからです。

Page 5: Bluetooth connecting iot bluetooth

インターネットは通信費がかかります。

Page 6: Bluetooth connecting iot bluetooth

Bluetoothは通信費がかからず、使用できます。

Page 7: Bluetooth connecting iot bluetooth

Wifiはパスワード設定が必要です。

Page 8: Bluetooth connecting iot bluetooth

Bluetoothは設定せず接続できます。

Page 9: Bluetooth connecting iot bluetooth

インターネット経由をメインとしたデバイスはさらに増えています。

Page 10: Bluetooth connecting iot bluetooth

コンセット系や家電をもちろん

Page 11: Bluetooth connecting iot bluetooth

PCマウスで心拍数を計測したりする製品も販売するそうです。

心拍センサー搭載「スマートマウス」

Page 12: Bluetooth connecting iot bluetooth

なので、

Page 13: Bluetooth connecting iot bluetooth

Bluetooth接続スキルも探求しています。

Page 14: Bluetooth connecting iot bluetooth

Bluetooth接続分岐をできました。Bluetoothもデータです。

Page 15: Bluetooth connecting iot bluetooth

詳しくはこちらを読めば理解できます。

Page 16: Bluetooth connecting iot bluetooth

一年前はデータベースをやると騒いでました。

Page 17: Bluetooth connecting iot bluetooth

今はとても重宝しています。

Page 18: Bluetooth connecting iot bluetooth

いきなりですが、ライブコーディングします。

Page 19: Bluetooth connecting iot bluetooth

Buletoothのサービス情報をモバイルに表示します。時間があれば、そのままPodsアップデートします。

Page 20: Bluetooth connecting iot bluetooth

制限時間10分です。

Page 21: Bluetooth connecting iot bluetooth

ループでNSArray型に配列を取得

for service in services! { // キャラクタリスティック探索開始

peripheral.discoverCharacteristics(nil, for: service as! CBService)//サービス情報の付与

nsDat = services } }

Page 22: Bluetooth connecting iot bluetooth

サービス情報を渡すメソッドの追加

open func tekioki () ->NSArray{ if BlModel.sharedBlTextPeripheral.nsDat == nil{ BlModel.sharedBlTextPeripheral.nsDat = [] } return BlModel.sharedBlTextPeripheral.nsDat }

Page 23: Bluetooth connecting iot bluetooth

サービス情報を画面のViewControllerで取得

let dx = BLEView().tekioki()

Page 24: Bluetooth connecting iot bluetooth

Cocoapodsのオープンソースで公開しています。

BLEView_BlueToothライブラリー

Page 25: Bluetooth connecting iot bluetooth

Mosa新年会ありがとうございました。