Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bdf037b

Browse files
committed
merge SensiBots-master
1 parent 10515b6 commit bdf037b

File tree

4 files changed

+0
-17
lines changed

4 files changed

+0
-17
lines changed

iPhone Apps/rfduino/RFduino.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ extern NSString *customUUID;
5555
@property(strong, nonatomic) RFduinoManager *rfduinoManager;
5656

5757
@property(strong, nonatomic) NSString *name;
58-
@property(strong, nonatomic) NSString *UUID;
5958
@property(strong, nonatomic) NSData *advertisementData;
6059
@property(strong, nonatomic) NSNumber *advertisementRSSI;
6160
@property(assign, nonatomic) NSInteger advertisementPackets;

iPhone Apps/rfduino/RFduino.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ @implementation RFduino
9090
@synthesize peripheral;
9191

9292
@synthesize name;
93-
@synthesize UUID;
9493
@synthesize advertisementData;
9594
@synthesize advertisementRSSI;
9695
@synthesize advertisementPackets;

iPhone Apps/rfduino/RfduinoManager.m

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,6 @@ - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeri
214214
{
215215
// NSLog(@"didDiscoverPeripheral");
216216

217-
NSString *uuid = NULL;
218-
if ([peripheral.identifier.UUIDString length] > 0) {
219-
// only returned if you have connected to the device before
220-
uuid = peripheral.identifier.UUIDString;
221-
} else {
222-
uuid = @"";
223-
}
224-
225217
bool added = false;
226218

227219
RFduino *rfduino = [self rfduinoForPeripheral:peripheral];
@@ -231,7 +223,6 @@ - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeri
231223
rfduino.rfduinoManager = self;
232224

233225
rfduino.name = peripheral.name;
234-
rfduino.UUID = uuid;
235226

236227
rfduino.peripheral = peripheral;
237228

iPhone Apps/rfduino/ScanViewController.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
132132
if (rfduino.outOfRange) {
133133
start = [UIColor colorWithRed:160/255.0 green:160/255.0 blue:160/255.0 alpha:0.8];
134134
stop = [UIColor colorWithRed:160/255.0 green:160/255.0 blue:160/255.0 alpha:0.2];
135-
} else if (! rfduino.UUID.length) {
136-
start = [UIColor colorWithRed:224/255.0 green:242/255.0 blue:224/255.0 alpha: 1.0];
137-
stop = [UIColor colorWithRed:224/255.0 green:242/255.0 blue:224/255.0 alpha: 0.7];
138135
} else {
139136
start = [UIColor colorWithRed:253/255.0 green:255/255.0 blue:255/255.0 alpha: 1.0];
140137
stop = [UIColor colorWithRed:253/255.0 green:255/255.0 blue:255/255.0 alpha: 0.7];
@@ -147,8 +144,6 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
147144

148145
NSString *text = [[NSString alloc] initWithFormat:@"%@", rfduino.name];
149146

150-
NSString *uuid = rfduino.UUID;
151-
152147
int rssi = rfduino.advertisementRSSI.intValue;
153148

154149
NSString *advertising = @"";
@@ -162,7 +157,6 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
162157
[detail appendString:@" "];
163158
[detail appendFormat:@"Packets: %d\n", rfduino.advertisementPackets];
164159
[detail appendFormat:@"Advertising: %@\n", advertising];
165-
[detail appendFormat:@"%@", uuid];
166160

167161
cell.textLabel.text = text;
168162
cell.detailTextLabel.text = detail;

0 commit comments

Comments
 (0)