Reference   Language | Libraries | Comparison | Changes

ArduinoBLE : BLECharacteristic class

valueSize()

Description

Query the maximum value size of the specified BLECharacteristic.

Syntax

bleCharacteristic.valueSize()

Parameters

None

Returns

The maximum value size of the characteristic (in bytes)

Example


// BLE LED Switch Characteristic - custom 128-bit UUID, read and writable by central
BLEByteCharacteristic switchCharacteristic("19B10001-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite);

// …

Serial.print(“value size =);
Serial.println(switchCharacteristic.valueSize());

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.