mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
added addressString convenience method
This commit is contained in:
parent
af54460952
commit
a51168ce9f
@ -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;
|
||||
|
@ -69,6 +69,10 @@
|
||||
|
||||
- (NSString *) nameOrAddress{
|
||||
if (name) return name;
|
||||
return [self addressString];
|
||||
}
|
||||
|
||||
- (NSString *) addressString{
|
||||
return [BTDevice stringForAddress:&address];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user