Forum >Replies by mjain
Replies (2)
  • You Reply: Yes I did. Thank you. However it has no comments to tell me what is going on. Anyway I have figure out how to read the values, and trying to figure out how to write the value from the phone. For example as simple as turning a LED ON/OFF using the iPhone app and bluno. Your help will be greatly appreciated to guide me how to write the value. I saw on Bluno webpage there are demonstration of such sort of things but no code to use. Thank you
  • You Reply: I am able to read to read the characteristics now using the following method:

    -(void)peripheral:(CBPeripheral *)peripheral didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error
    {
       
        if([characteristic.UUID isEqual:[CBUUID UUIDWithString:TI_TEMP_TEMPERTURE_MEASUREMENT_CHARACTERISTIC_UUID]])
        {
            [self getTempData:characteristic error:error];
            NSLog(@"Found Charateristics");    }
       
        if([characteristic.UUID isEqual:[CBUUID UUIDWithString:TI_TEMP_MANUFACTURER_NAME_UUID]])
        {
            [self getManufacturerName:characteristic];
        }
       
        self.deviceInfo.text = [NSString stringWithFormat:@"%@\n%@\n",self.connected, self.manufacturer];
    }

    However how do I read the values, when I read characteristics.value I get the following:

    <35370d0a 35370d0a 35370d0a>

    How do I convert it to the actual serial port values. Your help is greatly appreciated

    Thank you,

    Mohit