Skip to content
Discussion options

You must be logged in to vote

After quick check it seems that this problem could be addressed directly at application level.
For instance:

#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/hci.h>
#include <zephyr/kernel.h>

void main(void)
{
    // Define your IEEE public BLE address (replace with your own)
    bt_addr_le_t my_addr = {
        .type = BT_ADDR_LE_PUBLIC,
        .a = { {0xC0, 0x98, 0xE5, 0x00, 0x00, 0x01} }
    };

    // Create a new BLE identity with the specified public address
    int id = bt_id_create(&my_addr, NULL);
    if (id < 0) {
        printk("Failed to set BLE address\n");
        return;
    }

    // Enable the Bluetooth stack
    if (bt_enable(NULL)) {
        printk("…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ivanwagner
Comment options

Comment options

You must be logged in to vote
1 reply
@ivanwagner
Comment options

Answer selected by ivanwagner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants