27import java.nio.charset.StandardCharsets;
33 public static final String
UUID128_BASE =
"00000000-0000-1000-8000-00805f9b34fb";
40 public static final String
toUUID128(
final String uuid16) {
41 if( 4 == uuid16.length() ) {
63 final int min_result_ms,
final int multiplier) {
64 return (
short) ( Math.max(min_result_ms,
65 ( 1 + conn_latency ) * conn_interval_max_ms * Math.max(2, multiplier)
91 public static String
decodeUTF8String(
final byte[] buffer,
final int offset,
final int size) {
92 return new String(buffer, offset, size, StandardCharsets.UTF_8);
static final String UUID128_BASE
Base UUID128 used to express a UUID16, etc.
static final String toUUID128(final String uuid16)
Converts the given 4 digits uuid16 value to UUID128 representation.
static String decodeUTF8String(final byte[] buffer, final int offset, final int size)
Decodes the given consecutive UTF-8 characters within buffer to String.
static short getHCIConnSupervisorTimeout(final int conn_latency, final int conn_interval_max_ms)
Defining the supervising timeout for LE connections to be a multiple of the maximum connection interv...
static short getHCIConnSupervisorTimeout(final int conn_latency, final int conn_interval_max_ms, final int min_result_ms, final int multiplier)
Defining the supervising timeout for LE connections to be a multiple of the maximum connection interv...