SDK для работы с BunchBeacon
 Указатель Классы Функции Свойства Группы Страницы
BNCHMutableBunch.h
1 //
2 // BNCHMutableBunch.h
3 // BunchBeaconSDK
4 //
5 // Version : 1.1.0
6 // Created by Igor Parfenov on 01/01/14.
7 // Copyright (c) 2014 Bunch. All rights reserved.
8 //
9 
10 #import <Foundation/Foundation.h>
11 #import <CoreLocation/CoreLocation.h>
12 #import <CoreBluetooth/CoreBluetooth.h>
13 #import "BNCHBunchDefinitions.h"
14 #import "BNCHBunch.h"
15 
16 
17 @class BNCHMutableBunch;
19 // Bunch delegate-протокол
20 
21 
27 @protocol BNCHMutableBunchDelegate <NSObject>
28 
46 - (void)bunch:(BNCHMutableBunch *)bunch didUpdateValueForParameter:(BNCHParameterType)parameter error:(NSError *)error;
47 
63 - (void)bunch:(BNCHMutableBunch *)bunch didWriteValueForParameter:(BNCHParameterType)parameter error:(NSError *)error;
64 
65 
66 @end
67 
75 
77 
78 @property (nonatomic) id <BNCHMutableBunchDelegate> delegate;
79 
81 
87 @property (nonatomic, strong, readonly) CBPeripheral* peripheral;
88 
92 @property (nonatomic, readonly) BOOL isConnected;
93 
94 
96 
105 @property (nonatomic, strong, readonly) NSString* macAddress;
106 
113 @property (nonatomic, strong, readonly) NSNumber* measuredPower;
114 
118 @property (nonatomic, strong, readonly) NSNumber* txPower;
119 
123 @property (nonatomic, strong, readonly) NSNumber* advInterval;
124 
131 @property (nonatomic, strong, readonly) NSNumber* batteryLevel;
132 
136 @property (nonatomic, strong, readonly) NSString* hardwareVersion;
137 
141 @property (nonatomic, strong, readonly) NSString* firmwareVersion;
142 
144 
159 - (void)readParameterFromBunch:(BNCHParameterType)parameter;
160 
161 
163 
175 - (void)writeMajor:(unsigned short)major;
176 
188 - (void)writeMinor:(unsigned short)minor;
189 
190 
209 - (void)writeMeasuredPower:(char)power;
210 
222 - (void)writeAdvInterval:(unsigned short)interval;
223 
224 
236 - (void)writePower:(BNCHBunchPower)power;
237 
249 - (void)writeBunchType:(BNCHBunchType)type;
250 
251 
252 @end
253 
NSNumber * advInterval
Definition: BNCHMutableBunch.h:123
BOOL isConnected
Definition: BNCHMutableBunch.h:92
Definition: BNCHMutableBunch.h:74
Definition: BNCHBunch.h:101
NSString * firmwareVersion
Definition: BNCHMutableBunch.h:141
NSNumber * txPower
Definition: BNCHMutableBunch.h:118
NSNumber * measuredPower
Definition: BNCHMutableBunch.h:113
NSString * hardwareVersion
Definition: BNCHMutableBunch.h:136
NSNumber * batteryLevel
Definition: BNCHMutableBunch.h:131
CBPeripheral * peripheral
Definition: BNCHMutableBunch.h:87
NSString * macAddress
Definition: BNCHMutableBunch.h:105
Definition: BNCHMutableBunch.h:27