Yongho Ahn
Yongho Ahn

Reputation: 7

Does Arduino Nano 33 BLE can advertise with custom payload?

I'm trying to add custom payload in the BLE advertising packet and receive it from Android Service. (Arduino --- {data} ---> Android) However, ArduinoBLE library seems does not support a custom payload. (https://www.arduino.cc/en/Reference/ArduinoBLE)

So, How can I send data through the advertising sequence? (Not connect directly)

Upvotes: 0

Views: 890

Answers (1)

ukBaz
ukBaz

Reputation: 7954

Additional advertising data is how BLE beacons work. iBeacons use ManufacturerData and Eddystone beacons use ServiceData. Looking through the documentation you linked to, I could not find an entry for ServiceData, but I did find one for ManufacturerData:

https://www.arduino.cc/en/Reference/ArduinoBLEBLEsetManufacturerData

It is not clear from the Arduino documentation how you enter the company identified. Assuming you do not have a company identifier then I think you could get away with using company ID 0xFFFF as long as your documentation and/or code comments make it clear it is not to be used in shipping products and is only for "internal testing" as it mentions at the bottom of the Bluetooth company identifier page.

Upvotes: 1

Related Questions