Package fr.zhortech.ztcorekit.ble.utils

Types

ZTBuffer
Link copied to clipboard
class ZTBuffer
ZTBuffer represents a byte buffer with commons operations, such as node js buffer library.

Functions

extractMacAddress
Link copied to clipboard
fun extractMacAddress(byteArray: ByteArray): String
isBitSet
Link copied to clipboard
fun isBitSet(number: Byte, index: Int): Boolean
isMAC
Link copied to clipboard
fun isMAC(address: String): Boolean
isValidSerial
Link copied to clipboard
fun isValidSerial(serial: String): Boolean

Properties

BE
Link copied to clipboard
val BE: ByteOrder
DEVICE_SERIAL_COMPILED_PATTERN
Link copied to clipboard
val DEVICE_SERIAL_COMPILED_PATTERN: Pattern
LE
Link copied to clipboard
val LE: ByteOrder
MAC_ADDRESS_COMPILED_PATTERN
Link copied to clipboard
val MAC_ADDRESS_COMPILED_PATTERN: Pattern