TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2016 |
Maintained by Ken Lin.
MoBagel is a real-time cloud analytics platform that helps IoT companies monitor and analyze hardware usage, speed up research and development, forecast sales and marketing strategies, and proactively engage with customers to prevent product returns. As a result, companies can also save up to millions in cost reductions.
To run the example project, clone the repo, and run pod install
from the Example directory first.
'AFNetworking', '~> 2.3'
'AESCrypt', '~> 0.0.1'
MoBagelSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MoBagelSDK", '~> 0.2.1'
Parameter | Type | Description |
---|---|---|
state(mandatory) | string | State of device |
latlng(optional) | string | Latitude and longitude of device format latitude:longitude |
c_xxx | string/number | You can put your custom parameter with prefix c_ |
#import <MoBagelSDK/BagelDevice.h>
BagelDevice* device = [BagelDevice new];
device.product_id = @"<#product_id#>";
device.product_key = @"<#product_key#>";
device.device_id = @"<#device_id#>";
device.device_key = @"<#device_key#>";
id data = {<#Fill report data#>}
[device report:data
success:^(NSInteger code, NSString *data) {
<#Handle success response#>
}
failure:^(NSInteger code, NSError *error) {
<#Handle fail response#>
}];
import MoBagelSDK
let device = BagelDevice()
device.product_id = "<#product_id#>"
device.product_key = "<#product_key#>"
device.device_id = "<#device_id#>"
device.device_key = "<#device_key#>"
let data = NSDictionary()
device.report(data as [NSObject : AnyObject],
success: { (code, data) -> Void in
<#Handle success response#>
}) { (code, error) -> Void in
<#Handle fail response#>
}
You can visit our home page and get more information. https://mobagel.com
Ken Lin, [email protected]
MoBagelSDK is available under the MIT license. See the LICENSE file for more info.