TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Commercial |
ReleasedLast Release | Oct 2016 |
Maintained by Stephen Schiffli.
Depends on: | |
Bolts/Tasks | ~> 1.8.4 |
FastCoding | ~> 3.2.1 |
MetaWear is a complete development and production platform for wearable and connected device applications.
MetaWear features a number of sensors and peripherals all easily controllable over Bluetooth 4.0 Low Energy using this iOS API, no firmware or hardware experience needed!
It comes pre-loaded with a wirelessly upgradeable firmware, so you can always take advantage of the latest features.
REQUIREMENT NOTES
The iOS simulator doesn’t support Bluetooth 4.0, so test apps must be run on a real iOS device which requires a developer account. Bluetooth 4.0 available on iPhone 4S+, iPad 3rd generation+, or iPod Touch 5th generation.
See the License
Reach out to the community if you encounter any problems, or just want to chat :)
Our SDK is distibuted with CocoaPods, you can use the pod named 'Metawear-iOSAPI'
.
For first time CocoaPods users we have a detailed video guide.
Here is a walkthrough to showcase a very basic connect and toggle LED operation.
First, import the framework header files like this:
#import <MetaWear/MetaWear.h>
Then add the following code wherever appropriate to make the LED flash green:
// Begin scanning for MetaWear boards
[[MBLMetaWearManager sharedManager] startScanForMetaWearsWithHandler:^(NSArray *array) {
// Hooray! We found a MetaWear board, so stop scanning for more
[[MBLMetaWearManager sharedManager] stopScanForMetaWears];
// Connect to the board we found
MBLMetaWear *device = [array firstObject];
[device connectWithHandler:^(NSError *error) {
if (!error) {
// Hooray! We connected to a MetaWear board, so flash its LED!
[device.led flashLEDColorAsync:[UIColor greenColor] withIntensity:0.5];
}
}];
}];
Now run the app on a physical device.
BLUETOOTH IS NOT SUPPORTED IN THE SIMULATOR and you will receive a build ERROR when you attempt to compile a MetaWear project in the simulator.
A sample iOS App using the MetaWear iOS API can be found at https://github.com/mbientlab/Metawear-SampleiOSApp.
The sample iOS App demonstrates the base functionality of the various MetaWear modules and serves as a good starting point for developers.
See the iOS Guide