how hot is my coffee? sensors, ios and core bluetooth
TRANSCRIPT
![Page 1: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/1.jpg)
How Hot is My Coffee? Sensors, iOS and Core Bluetooth
Evan K. Stone Senior iOS Developer
Cloud City Development // San Francisco
![Page 2: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/2.jpg)
An integrated design and so-ware consultancy specializing in web and mobile apps
![Page 3: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/3.jpg)
There is an explosion.
![Page 4: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/4.jpg)
Not bombs.
![Page 5: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/5.jpg)
Usually doesn’t hurt people.
![Page 6: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/6.jpg)
Very oCen helps people.
![Page 7: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/7.jpg)
This explosion is…
![Page 8: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/8.jpg)
The Internet of Things
![Page 9: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/9.jpg)
Connected devices
![Page 10: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/10.jpg)
Nest. Fitbit. Polar.
![Page 11: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/11.jpg)
Key technology behind it?
![Page 12: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/12.jpg)
Bluetooth Low Energy
![Page 13: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/13.jpg)
What is it?
![Page 14: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/14.jpg)
Not Classic Bluetooth.
![Page 15: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/15.jpg)
A lightweight subset
![Page 16: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/16.jpg)
AKA “Bluetooth Smart”
![Page 17: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/17.jpg)
Why do we care?
![Page 18: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/18.jpg)
It’s exciSng!
![Page 19: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/19.jpg)
It’s fun!
![Page 20: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/20.jpg)
It can be rewarding.
![Page 21: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/21.jpg)
Allows us to interact with physical devices
![Page 22: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/22.jpg)
We can develop iOS apps that communicate with other things
around us!
![Page 23: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/23.jpg)
No cerSficaSon required!
![Page 24: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/24.jpg)
Super Low Barrier for Entry.
![Page 25: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/25.jpg)
TI SensorTag Ambient Light
Digital Microphone
MagneSc Sensor
Humidity
Accelerometer GyroscopeMagnetometer
Ambient Temperature
IR Temperature
![Page 26: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/26.jpg)
$29
![Page 27: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/27.jpg)
What does this mean for us?
![Page 28: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/28.jpg)
The IoT Landscape is changing
![Page 29: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/29.jpg)
Tons of innovaSon going on right now.
![Page 30: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/30.jpg)
Startups
![Page 31: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/31.jpg)
Incubators and Accelerators
![Page 32: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/32.jpg)
They will need you.
![Page 33: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/33.jpg)
Ge]ng started now will help you help them.
![Page 34: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/34.jpg)
Side note:
![Page 35: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/35.jpg)
What about iBeacons?
![Page 36: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/36.jpg)
Subject of another talk!
![Page 37: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/37.jpg)
iBeacons are BLE devices.
![Page 38: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/38.jpg)
Behave differently
![Page 39: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/39.jpg)
They are also fun to work with.
![Page 40: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/40.jpg)
Are handled by a different framework!
![Page 41: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/41.jpg)
Core LocaSon
![Page 42: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/42.jpg)
Ge]ng back to BLE…
![Page 43: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/43.jpg)
Acronym Time!
![Page 44: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/44.jpg)
GAPGeneric Access Profile
![Page 45: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/45.jpg)
Defines how devices adver&se themselves and how they connect
![Page 46: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/46.jpg)
Defines the concept of the Central and the Peripheral
![Page 47: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/47.jpg)
GATTGeneric Aaribute Profile
![Page 48: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/48.jpg)
Defines the way devices transfer data back and forth
![Page 49: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/49.jpg)
Introduces Services and CharacterisScs
![Page 50: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/50.jpg)
You won’t be tested on the acronyms.
![Page 51: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/51.jpg)
Just know they exist.
![Page 52: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/52.jpg)
Roles
![Page 53: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/53.jpg)
We are already used to Client and Server roles
![Page 54: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/54.jpg)
In BLE we have the Central and Peripheral roles
![Page 55: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/55.jpg)
Central
![Page 56: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/56.jpg)
Wants data from a Peripheral
![Page 57: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/57.jpg)
Generally this is your iOS device.
![Page 58: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/58.jpg)
Peripheral
![Page 59: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/59.jpg)
Supplies data.
![Page 60: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/60.jpg)
A device like a heart rate monitor
![Page 61: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/61.jpg)
Becomes an extension of our iOS device, giving it abiliSes it didn’t
have previously
![Page 62: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/62.jpg)
Side note:
![Page 63: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/63.jpg)
An iOS device can be a Peripheral…
![Page 64: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/64.jpg)
…but typically they act as a Central.
![Page 65: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/65.jpg)
The Age of Discovery
![Page 66: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/66.jpg)
For devices to communicate with each other, they must find each
other.
![Page 67: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/67.jpg)
AdverSsing and Discovery
![Page 68: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/68.jpg)
The Peripheral AdverSses
![Page 69: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/69.jpg)
The Central scans and listens
![Page 70: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/70.jpg)
When it finds a Peripheral, the Central can ask to connect.
![Page 71: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/71.jpg)
Kinda like a headhunter on LinkedIn.
![Page 72: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/72.jpg)
Services and CharacterisScs
![Page 73: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/73.jpg)
Services group data
![Page 74: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/74.jpg)
Services contain CharacterisScs
![Page 75: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/75.jpg)
Service
Characteris2c
Characteris2c
Characteris2c
![Page 76: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/76.jpg)
Central connects and discovers Services and CharacterisScs the
peripheral offers
![Page 77: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/77.jpg)
But how?
![Page 78: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/78.jpg)
Core Bluetooth
![Page 79: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/79.jpg)
Apple’s abstracSon over all that Bluetooth gobbledygook.
![Page 80: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/80.jpg)
Encapsulates the funcSonality of the BLE enSSes in framework classes
![Page 81: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/81.jpg)
Remember the four main players?
![Page 82: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/82.jpg)
Central and Peripheral. Service and CharacterisSc.
![Page 83: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/83.jpg)
Everything begins with a CB
![Page 84: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/84.jpg)
Peripheral
![Page 85: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/85.jpg)
CBPeripheral
![Page 86: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/86.jpg)
Central
![Page 87: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/87.jpg)
CBCentralManager
![Page 88: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/88.jpg)
Service
![Page 89: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/89.jpg)
CBService
![Page 90: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/90.jpg)
CharacterisSc
![Page 91: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/91.jpg)
CBCharacterisSc
![Page 92: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/92.jpg)
Side note:
![Page 93: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/93.jpg)
Caveat with Core Bluetooth development
![Page 94: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/94.jpg)
iOS Simulator does not support BLE.
![Page 95: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/95.jpg)
So you have to use a device.
![Page 96: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/96.jpg)
Which devices support BLE?
![Page 97: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/97.jpg)
iPhone 4s and later.iPad 3 and later.
![Page 98: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/98.jpg)
Basic Workflow
![Page 99: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/99.jpg)
Feels very client-server
![Page 100: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/100.jpg)
That’s not an accident.
![Page 101: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/101.jpg)
Workflow:
![Page 102: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/102.jpg)
InstanSate a CBCentralManager
![Page 103: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/103.jpg)
Tell CBCentralManager to scan for Peripherals with Services
we want
![Page 104: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/104.jpg)
When it finds a Peripheral, request to connect
![Page 105: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/105.jpg)
ACer connecSng, find out more about the Peripheral
![Page 106: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/106.jpg)
Read and set characterisScs
![Page 107: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/107.jpg)
Rinse, Lather, Repeat…
![Page 108: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/108.jpg)
Disconnect.
![Page 109: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/109.jpg)
What makes this work?
![Page 110: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/110.jpg)
Enter the UUID.
![Page 111: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/111.jpg)
Enter the UUID.
![Page 112: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/112.jpg)
Standard UUIDs have a 16-bit form.
![Page 113: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/113.jpg)
0x180A
![Page 114: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/114.jpg)
Custom UUIDs have a 128-bit form.
![Page 115: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/115.jpg)
F000AA00-0451-4000-B000-000000000000
![Page 116: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/116.jpg)
What do we mean by Standard and Custom UUIDs?
![Page 117: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/117.jpg)
For example…
![Page 118: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/118.jpg)
Heart Rate Monitor Service0x180D
![Page 119: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/119.jpg)
Heart Rate Measurement CharacterisSc
0x2A37
![Page 120: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/120.jpg)
ExciSng Reading!developer.bluetooth.org
🤓
![Page 121: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/121.jpg)
Custom Service UUIDs
Anything not listed on the standard list.
![Page 122: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/122.jpg)
For example…
![Page 123: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/123.jpg)
IR Temperature SensorF000AA00-0451-4000-B000-000000000000
![Page 124: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/124.jpg)
Where do I find these crazy numbers?
![Page 125: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/125.jpg)
Typically on the vendor website
![Page 126: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/126.jpg)
Or the hardware engineer on your team creates them!
![Page 127: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/127.jpg)
Back to scanning…
![Page 128: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/128.jpg)
CBCentralManager
![Page 129: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/129.jpg)
Core Bluetooth relies heavily on delegates
![Page 130: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/130.jpg)
CBCentralManagerDelegate
![Page 131: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/131.jpg)
CBPeripheralDelegate
![Page 132: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/132.jpg)
![Page 133: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/133.jpg)
Demo Time!
🎉
![Page 134: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/134.jpg)
How Hot is My Coffee?
![Page 135: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/135.jpg)
![Page 136: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/136.jpg)
Side note:
![Page 137: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/137.jpg)
Backgrounding
![Page 138: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/138.jpg)
Yes it’s possible!
![Page 139: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/139.jpg)
Requires a flag in your Info.plist
![Page 140: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/140.jpg)
key: UIBackgroundModesvalue: bluetooth-central
![Page 141: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/141.jpg)
Devices
![Page 142: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/142.jpg)
Many to choose from
![Page 143: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/143.jpg)
New ones appear constantly
![Page 146: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/146.jpg)
![Page 147: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/147.jpg)
Adafruit Feather 32u4 Bluefruit LEhaps://www.adafruit.com/products/2829
![Page 148: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/148.jpg)
![Page 150: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/150.jpg)
![Page 151: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/151.jpg)
The IoT space is exploding!
![Page 152: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/152.jpg)
More connected devices are being developed every day!
![Page 153: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/153.jpg)
More connected apps are needed every day!
![Page 154: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/154.jpg)
As an iOS developer, you can be on the cu]ng edge of this new fronSer!
![Page 155: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/155.jpg)
Explore!
![Page 156: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/156.jpg)
Experiment!
![Page 157: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/157.jpg)
Connect and Communicate
![Page 158: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/158.jpg)
Core Bluetooth.
![Page 159: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/159.jpg)
Resources
![Page 160: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/160.jpg)
Cloud City DevelopmentBlog hap://cloudcity.io/blog/2015/06/11/zero-to-ble-on-ios-part-one/ hap://cloudcity.io/blog/2015/10/15/developing-ios-app-using-ble-standard/
GitHub haps://github.com/cloudcity/BLECoffee haps://github.com/cloudcity/ZeroToBLE-Part2
![Page 161: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/161.jpg)
Apple's Official Core Bluetooth Docs
IntroducSon to Core Bluetooth Background OperaSon
Best PracSces
![Page 162: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/162.jpg)
Adafruit's IntroducSon to BLE haps://learn.adafruit.com/introducSon-to-bluetooth-low-energy/introducSon
![Page 163: How Hot is My Coffee? Sensors, iOS and Core Bluetooth](https://reader038.vdocument.in/reader038/viewer/2022110107/58a682d11a28ab94238b6215/html5/thumbnails/163.jpg)
Evan K. Stone
web: h<p://www.cloudcity.io
cloud city blog: h<p://blog.cloudcity.io
blog: h<p://www.interac?velogic.net
twi<er: @interac?vlogic