Connect to SCiO Sensor
September 17, 2015

Use the SCiO address to connect to the SCiO.
Call the connectDevice() method with the SCiO device to connect to.
The following code sample connects the mobile device to a SCiO sensor:

__weak typeof(&*self)weakSelf = self;

    [[CPScioDevice sharedInstance] connectDevice:self.currentDevice success:^{

        [weakSelf toastWithTitle:@"SCiO is connected" message:@"SCiO device connected successfully"];

    } failure:^(NSError *error) {

        dispatch_async(dispatch_get_main_queue(), ^{

            [weakSelf alertWithTitle:error.userInfo[NSLocalizedDescriptionKey]  message:error.userInfo[NSLocalizedFailureReasonErrorKey]];




Leave a Reply