Komut
valueSize()
Açıklama
Belirtilen BLEC karakteristiğinin maksimum değer boyutunu sorgulayın .
Sözdizimi
bleCharacteristic.valueSize ()
Parametreler
Yok
İadeler
Karakteristiğin maksimum değer boyutu (bayt cinsinden)
Misal
…
// 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());
…
// 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
- BLECharacteristic()
- uuid()
- properties()
- value()
- valueLength()
- readValue()
- writeValue()
- setEventHandler()
- descriptorCount()
- hasDescriptor()
- descriptor()
- canRead()
- read()
- canWrite()
- canSubscribe()
- subscribe()
- canUnsubscribe()
- unsubscribe()
- valueUpdated()