Komut
uuid()
Açıklama
Belirtilen BLEC karakteristiklerinin UUID'sini sorgulayın .
Sözdizimi
bleCharacteristic.uuid ()
Parametreler
Yok
İadeler
Dize olarak BLE hizmetinin UUID değeri.
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(“Switch characteristic UUID = “);
Serial.println(switchCharacteristic.uuid());
…
// BLE LED Switch Characteristic - custom 128-bit UUID, read and writable by central
BLEByteCharacteristic switchCharacteristic("19B10001-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite);
// …
Serial.print(“Switch characteristic UUID = “);
Serial.println(switchCharacteristic.uuid());
…
See Also
- BLECharacteristic()
- properties()
- valueSize()
- value()
- valueLength()
- readValue()
- writeValue()
- setEventHandler()
- descriptorCount()
- hasDescriptor()
- descriptor()
- canRead()
- read()
- canWrite()
- canSubscribe()
- subscribe()
- canUnsubscribe()
- unsubscribe()
- valueUpdated()