This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to send mac address as characteristic value?

hello! i want to send mac address of my bluetooth device. i have written function

uint32_t get_address(void)
{
    uint32_t err_code;
    ble_gap_addr_t  ble_gap_addr;
    memset(&ble_gap_addr, 0, sizeof(ble_gap_addr));
    ble_gap_addr.addr_type= BLE_GAP_ADDR_TYPE_PUBLIC;
    err_code = sd_ble_gap_address_get(&ble_gap_addr);
    return(err_code);
}

but i can't store data into array. can you help me?

Parents Reply Children
Related