@iotile/iotile-device
Version:
A typescript library for interfacing with IOTile BLE devices
26 lines (25 loc) • 1.31 kB
TypeScript
export declare function parseUTF8String(data: ArrayBuffer | SharedArrayBuffer): string;
/**
* Turn a binary 128 bit uuid into a string of the format {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
*
* All hex digits are printing in upper case.
*
* @param data A 16-byte data field containin a binary UUID in either little-endian
* or big endian format.
* @param reverse Reverse the 16-bytes before parsing them. This is useful if the
* data is being sent as a 128-bit little endian value such as what
* is included in Bluetooth advertisement packets.
*/
export declare function parseBinaryUUID(data: ArrayBuffer | SharedArrayBuffer, reverse: boolean): string;
/**
* Turn a binary 16 bit uuid into a string of the format {xxxx}
*
* All hex digits are printing in upper case.
*
* @param data A 2-byte data field containin a binary UUID in either little-endian
* or big endian format.
* @param reverse Reverse the 2-bytes before parsing them. This is useful if the
* data is being sent as a 16-bit little endian value such as what
* is included in Bluetooth advertisement packets.
*/
export declare function parseBinary16BitUUID(data: ArrayBuffer | SharedArrayBuffer, reverse: boolean): string;