Reference   Language | Libraries | Comparison | Changes

ArduinoBLE : BLEDescriptor class

value()

Description

Query the value of the specified BLEDescriptor.

Syntax

bleDescriptor.value()

Parameters

None

Returns

Value byte array of the BLE descriptor.

Example


BLEDescriptor millisLabelDescriptor("2901", "millis");

// …

  int descriptorValueSize = millisLabelDescriptor.valueSize();
  byte descriptorValue[descriptorValueSize];

  for (int i = 0; i < descriptorValueSize; i++) {
    descriptorValue[i] = millisLabelDescriptor.value()[i];
  }

See Also



Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.