Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void) bleAction1
- {
- for(CBService *service in peripheral.services)
- {
- if([service.UUID isEqual:[CBUUID UUIDWithString:@"07CD3295-E29F-4EEA-A0EC-617DA6921626"]])
- {
- for(CBCharacteristic *characteristic in service.characteristics)
- {
- if([characteristic.UUID isEqual:[CBUUID UUIDWithString:@"98EE2679-917C-4E39-A587-20E31E0BA519"]])
- {
- [peripheral readValueForCharacteristic:characteristic];
- return;
- }
- }
- }
- }
- }
- -(void) bleAction2
- {
- for(CBService *service in peripheral.services)
- {
- if([service.UUID isEqual:[CBUUID UUIDWithString:@"2FD8921C-9F28-4257-A1EB-61E6476FD2FF"]])
- {
- for(CBCharacteristic *characteristic in service.characteristics)
- {
- if([characteristic.UUID isEqual:[CBUUID UUIDWithString:@"C9D1BE56-9027-4AE3-BE66-9E8BED3A1FC3"]])
- {
- [peripheral readValueForCharacteristic:characteristic];
- return;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement