Types
AddrType {.pure.} = enum Public = 0, Random = 1
ServiceUuidType = enum UuidError = (0, "???"), Uuid16 = (1, "UUID16"), Uuid128 = (2, "UUID128")
Uuid = object case uuidType*: ServiceUuidType of Uuid16: uuid16*: array[2, uint8] of Uuid128: uuid128*: array[16, uint8] else: nil
Procs
proc bdAddr2string(x: uint64): string {....raises: [], tags: [], forbids: [].}