diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/README.md b/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/README.md index 340f46dd0c..98bb709c07 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/README.md +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/README.md @@ -85,7 +85,7 @@ void app_main(void) { } ``` -Then, call `nimble_port_init` function to initialize NimBLE host stack. +Then, call `nimble_port_init` function to initialize NimBLE host stack. ``` C void app_main(void) { @@ -186,7 +186,7 @@ void app_main(void) { /* Start NimBLE host task thread and return */ xTaskCreate(nimble_host_task, "NimBLE Host", 4*1024, NULL, 5, NULL); - return; + return; } ``` @@ -205,7 +205,7 @@ static void on_stack_sync(void) { void adv_init(void) { /* Local variables */ int rc = 0; - char addr_str[12] = {0}; + char addr_str[18] = {0}; /* Make sure we have proper BT identity address set */ rc = ble_hs_util_ensure_addr(0); diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/src/gap.c b/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/src/gap.c index a213439bbd..71e03ba7c2 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/src/gap.c +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/src/gap.c @@ -92,7 +92,7 @@ static void start_advertising(void) { void adv_init(void) { /* Local variables */ int rc = 0; - char addr_str[12] = {0}; + char addr_str[18] = {0}; /* Make sure we have proper BT identity address set */ rc = ble_hs_util_ensure_addr(0); diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/src/gap.c b/examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/src/gap.c index 76eedff759..8788b66f26 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/src/gap.c +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/src/gap.c @@ -27,7 +27,7 @@ inline static void format_addr(char *addr_str, uint8_t addr[]) { static void print_conn_desc(struct ble_gap_conn_desc *desc) { /* Local variables */ - char addr_str[12] = {0}; + char addr_str[18] = {0}; /* Connection handle */ ESP_LOGI(TAG, "connection handle: %d", desc->conn_handle); @@ -218,7 +218,7 @@ static int gap_event_handler(struct ble_gap_event *event, void *arg) { void adv_init(void) { /* Local variables */ int rc = 0; - char addr_str[12] = {0}; + char addr_str[18] = {0}; /* Make sure we have proper BT identity address set */ rc = ble_hs_util_ensure_addr(0); diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/src/gap.c b/examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/src/gap.c index b9def39876..8519028a5d 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/src/gap.c +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/src/gap.c @@ -27,7 +27,7 @@ inline static void format_addr(char *addr_str, uint8_t addr[]) { static void print_conn_desc(struct ble_gap_conn_desc *desc) { /* Local variables */ - char addr_str[12] = {0}; + char addr_str[18] = {0}; /* Connection handle */ ESP_LOGI(TAG, "connection handle: %d", desc->conn_handle); @@ -259,7 +259,7 @@ static int gap_event_handler(struct ble_gap_event *event, void *arg) { void adv_init(void) { /* Local variables */ int rc = 0; - char addr_str[12] = {0}; + char addr_str[18] = {0}; /* Make sure we have proper BT identity address set (random preferred) */ rc = ble_hs_util_ensure_addr(0); diff --git a/examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/src/gap.c b/examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/src/gap.c index 94f8221a6d..d4e7c249b6 100644 --- a/examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/src/gap.c +++ b/examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/src/gap.c @@ -28,7 +28,7 @@ inline static void format_addr(char *addr_str, uint8_t addr[]) { static void print_conn_desc(struct ble_gap_conn_desc *desc) { /* Local variables */ - char addr_str[12] = {0}; + char addr_str[18] = {0}; /* Connection handle */ ESP_LOGI(TAG, "connection handle: %d", desc->conn_handle); @@ -322,7 +322,7 @@ static int gap_event_handler(struct ble_gap_event *event, void *arg) { void adv_init(void) { /* Local variables */ int rc = 0; - char addr_str[12] = {0}; + char addr_str[18] = {0}; /* Make sure we have proper BT identity address set */ set_random_addr();