From an old/closed post - for reference...
Aug '21post #2
Here is an example for a Heart Rate Service. The heart rate is simulated by reading A0.
/*
This example creates a BLE peripheral with a Heart Rate Service
The circuit:
- Arduino Nano 33 BLE / BLE Sense
- Arduino Nano 33 IoT
- Arduino Nano RP2040 Connect
You can use a generic BLE central app, like BLE Scanner (iOS and Android) or
nRF Connect (Android), to interact with the services and characteristics
created in this sketch.
Silicon Labs EFR Connect and Infineon/Cypress CySmart can decode Heart Rate Service.
This example code is in the public domain.
*/
My question is about the peripheral name seen by the iOS/android app.
Sometimes on my iOS app I see "Arduino HRM" and other times I see
"Arduino Nano 33 BLE".
I'm using iOS, in my case.
I want the peripheral name, to be what I want, in this case "Arduino HRM".
When I have a temp sensor, or otherwise, I don't want the peripheral name
to be arduino nano 33 ble, I want it to be temp sensor.
So, I guess, I want to know if it's possible to force the older system
to see my chosen peripheral name, in my arduino code.
Anyway, thanks for the hrm code referenced above.