firmwareSandsara
cycleModeCallbacks Class Reference

[BLE Command] This function is called when you write or read the cycleMode characteristic More...

Inheritance diagram for cycleModeCallbacks:
Collaboration diagram for cycleModeCallbacks:

Detailed Description

[BLE Command] This function is called when you write or read the cycleMode characteristic

the cycle mode is used to control the sequence of the LEDs and there is 2 mode, cycle and solid.

  • cycle mode means that the LED strip will show all the colors from the selected palette at the same tame.
  • solid mode means that the LED strip will set the same color chosen from the selected palette for all the LEDs in the LED strip.

Properties:

  • Write
  • Read

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

Usage: you can write to this characteristic to set the cycle mode. In the same way, you can read it to know the cycle mode

Range: accepted values are 0 or any other diffeent than 0.

  • 0 to set cycle mode.
  • any other number to set solid mode.
Note
when you write to this characteristic you will be notified by the ledCharacteristic_errorMsg with some of these values:
  • "ok" means the value was set successfully.
  • "error = -70" the values is out of range.
See also
How to read the response of a characteristic

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