iOS application for communication and control with beacon (Bluetooth) devices.
Xcode development tool and CoreBluetooth library were used.
This class receives callbacks for the execution and termination of an app, entering the background state, or reactivating.
This class is responsible for central
function in CoreBluetooth.
This class is in charge of peripheral
functions in CoreBluetooth.
CBHelper
in charge of interaction with beacons and a class that manages interactions between various views. The LPManager
is assigned with app execution and is shared among all views until the app is closed.
It includes CBCentralManager
and CBPeripheral
in charge of CoreBluetooth function, and receives their callbacks.
When CBHelper
receives a callback delivered from a CBCentralManager
, that is, a device that performs a central function, or a CBPeripheral
, that is, a beacon device, it generates an event of CBHelperDelegate
so that each view controller can perform processing logic according to the event.
Handles the app's main screen.
Scan the beacon and make the connection.
Set the alarm sound of the connected beacon or central
device.
Displays the information of the connected beacon device.