firmwareSandsara
generalCallbacks_name Class Reference

[BLE Command] This class is used to create an object to be called when you write to the generalName characteristic. More...

Inheritance diagram for generalCallbacks_name:
Collaboration diagram for generalCallbacks_name:

Detailed Description

[BLE Command] This class is used to create an object to be called when you write to the generalName characteristic.

Sandsara has a Bluetooth name so you can identify it and you can choose your Sandsara's name.

Properties:

  • Write
  • Read

UUID: 7b204548-30c3-11eb-adc1-0242ac120002

Usage: if you want to change the Bluetooth name of your sandsara just write to this characteristic the desired name. And if you want to know the current name just read the characteristic.

Range: accepted values are a name, for example, "Raul", "living Room", "Maria", etc. The maximum length of the name should be less than 30 characters.

Response: you can receive one of these responses after you write to this characteristic.

  • "ok" means the name was set successfully.
  • "-1" the name length is out of range.
Note
all the responses have to be read from the generalErrorMsg characteristic after being notified by it.
See also
How to read the response of a characteristic

The documentation for this class was generated from the following file: