firmwareSandsara
setBrightnessCallbacks Class Reference

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

Inheritance diagram for setBrightnessCallbacks:
Collaboration diagram for setBrightnessCallbacks:

Detailed Description

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

you can change the brightness of the led strip just by modifying this characteristic.

Properties:

  • Write
  • Read

UUID: 1a9a8948-2305-11eb-adc1-0242ac120002

Usage: you have to write to this characteristic the percentage of the desired brightness or you can read it to know it.

Range:

  • the brightness characteristic accepts values between 0 and 100.

posible reponses:

  • "ok" the desired brightness was set.
  • "error= -1" the brightness is our of range.
Note
when you write to this characteristic you will be notified by the ledErrorMsg characteristic with the response.
See also
How to read the response of a characteristic

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