iOS Support for LPMS-B2
LPMS-B2, besides Bluetooth classic, also supports Bluetooth 4 / Bluetooth Low Energy. This allows us to connect the sensor to Apple mobile devices such as the iPad, iPhone or the Apple watch. We recently have created a library that enables development of applications supporting LPMS-B2 on these devices.
The library can be accessed via our open source repository.
The repository contains a skeleton application that shows usage of the most basic parts of the library. The library itself is contained in the following files:
1 2 3 4 |
LpmsB2.m LpmsB2.h LpmsBData.m LpmsBData.h |
A sensor object is initialized and connected using the follwoing code:
1 2 3 4 5 6 7 8 9 |
#import "LpmsB2.h" #import "LpmsBData.h" .. CBPeripheral *peripheral; CBCentralManager *centralManager; .. LpmsB2 *myLpmsB2; myLpmsB2 = [[LpmsB2 alloc] init]; [myLpmsB2 connect:centralManager Address:peripheral]; |
More coming soon..