| discovered-descriptors -> List | The list of discovered descriptors on the remote characteristic. |
|---|---|
| read -> ByteArray | Reads the value of the characteristic on the remote device. |
| wait-for-notification -> ByteArray | Waits until the remote device sends a notification or indication on the characteristics. Returns the notified/indicated value. |
| write value/Data -> none | Writes the value of the characteristic on the remote device. |
| subscribe -> none | Requests to subscribe on this characteristic. |
| unsubscribe -> none | |
| discover-descriptors -> List | Discovers all descriptors for this characteristic. |
| mtu -> int | The negotiated mtu on the characteristics. |
| handle -> int | The handle of the characteristic. |
| operator == other/any -> bool | Whether this object is equal to the other. |
| stringify -> string | Stringifies this object. |
| is-closed -> bool |
class Pin:
number/int
constructor .number:
operator == other:
if other is not Pin: return false
return number == other.number
hash-code method. That is, if a class has a hash-code member, then the equality and hash-code must agree. If two instances are equal (a == b), then their hash codes must also be equal (a.hash-code == b.hash-code).