This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to send parameter like this 0x00,0xff for requestfrom iphone to BLE

Please suggests...

I want to send parameter like this ...

uint8_t val = 0x00,0xff;
        NSData *data = [NSData dataWithBytes:&val length:1];
        [proximityPeripheral writeValue:data forCharacteristic:self.immidiateAlertCharacteristic type:CBCharacteristicWriteWithoutResponse];

IN iOS.. BUT ITS GIVING WRONG..

Related