added addressString convenience method

This commit is contained in:
matthias.ringwald 2009-12-12 20:24:01 +00:00
parent af54460952
commit a51168ce9f
2 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,7 @@ typedef enum {
- (void) setAddress:(bd_addr_t *)addr;
- (bd_addr_t *) address;
- (NSString *) toString;
- (NSString *) addressString;
+ (NSString *) stringForAddress:(bd_addr_t *) address;
@property (readonly) BluetoothDeviceType deviceType;

View File

@ -69,6 +69,10 @@
- (NSString *) nameOrAddress{
if (name) return name;
return [self addressString];
}
- (NSString *) addressString{
return [BTDevice stringForAddress:&address];
}