BLE Device Name

Hi,

I’ve been going through this great tutorial by @jaredwolff - https://www.jaredwolff.com/how-to-use-particles-powerful-bluetooth-api/#. When using the LightBlue BLE app, my Argon is discovered with the name Argon-WJK42D. Is it possible to configure the device to be discovered using the Particle name I gave it during device activation, or rather to broadcast the device with that name?

I haven’t been able to find any documentation that indicates how to do so.

Thanks.

Hey @NJD

You’ll have to do something like this:

BleAdvertisingData data;
data.appendLocalName("Test");
BLE.advertise(&data); 

Where you’d want to replace “Test” with whatever name you want to use.

Here’s a whole thread on the subject.

1 Like

@jaredwolff, fantastic thanks!

1 Like