def METHOD_NAME():
    cdef rfcomm_dev_list_req *dl
    cdef char src[18]
    cdef char dst[18]
    res = get_rfcomm_list(&dl)
    if res < 0:
        raise RFCOMMError(ERR[res])
    devs = []
    for 0 <= i < dl.dev_num:
        ba2str(&dl.dev_info[i].src, src)
        ba2str(&dl.dev_info[i].dst, dst)
        devs.append(
            {    "id": dl.dev_info[i].id,
                "channel": dl.dev_info[i].channel,
                "flags": dl.dev_info[i].flags,
                "state": RFCOMM_STATES[dl.dev_info[i].state],
                "src": src.decode("UTF-8"),
                "dst": dst.decode("UTF-8")
            })
    free(dl)
    return devs