ArduinoCore-arc32 icon indicating copy to clipboard operation
ArduinoCore-arc32 copied to clipboard

Jira 770 CurieBLE: peripheral.deviceName() returns empty String

Open sandeepmistry opened this issue 8 years ago • 2 comments

I'm using the peripheral explorer with bleno's echo example. peripheral.deviceName() return an empty string. I expect it to return raspberrypi.

Here's the output:

BLE Central - Peripheral Explorer
Found C8:69:CD:41:84:A2 '' 
Found 00:19:0E:11:24:06 '' ec00
Connecting ...
Connected
Discovering attributes ...
Attributes discovered

Device name: 
Service 1800
Service 1801
Service ec00
	Characteristic ec0e, properties 0x26

Disconnecting ...
Disconnected

Might be related to #378.

sandeepmistry avatar Dec 29 '16 22:12 sandeepmistry

This issue is logged as Jira 770. This feature is currently not implemented.

@sandeepmistry Would you please provide the reasoning of using deviceName as oppose to localName of a Peripheral?

SidLeung avatar Jan 06 '17 02:01 SidLeung

Since the 0x2a00 characteristic is mandatory by the Core Bluetooth spec, it would be nice to have a convenience API to read the device name. It also allows you to store a longer name in the peripheral incase there is not enough space for the full desired local name to be advertised.

Once #378 is addressed this would be easier.

sandeepmistry avatar Jan 11 '17 18:01 sandeepmistry