1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

Merge pull request #12065 from haukepetersen/add_ccnl_bleboards

NDN-over-BLE: enable CCN-lite to use BLE as link layer
This commit is contained in:
Martine Lenders 2019-08-29 13:54:06 +02:00 committed by GitHub
commit a568090697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,8 @@ APPLICATION = ccn-lite-relay
# If no BOARD is found in the environment, use this default:
BOARD ?= native
BOARD_WHITELIST := fox iotlab-m3 msba2 mulle native pba-d-01-kw2x samr21-xpro
BOARD_WHITELIST := fox iotlab-m3 msba2 mulle native nrf52dk nrf52840dk \
pba-d-01-kw2x samr21-xpro
# This has to be the absolute path to the RIOT base directory:

View File

@ -30,7 +30,7 @@
#include "net/bluetil/ad.h"
#include "net/bluetil/addr.h"
#define DEFAULT_NODE_NAME "RIOT-GNRC"
#define DEFAULT_NODE_NAME "bleRIOT"
#define DEFAULT_SCAN_DURATION (500U) /* 500ms */
#define DEFAULT_CONN_TIMEOUT (500U) /* 500ms */
@ -69,8 +69,11 @@ static int _conn_dump(nimble_netif_conn_t *conn, int handle, void *arg)
printf("[%2i] ", handle);
bluetil_addr_print(conn->addr);
printf(" (%c) -> ", role);
printf(" (%c)", role);
#ifdef MODULE_GNRC_IPV6
printf(" -> ");
bluetil_addr_ipv6_l2ll_print(conn->addr);
#endif
puts("");
return 0;
@ -121,8 +124,10 @@ static void _cmd_info(void)
bluetil_addr_swapped_cp(tmp_addr, own_addr);
printf("Own Address: ");
bluetil_addr_print(own_addr);
#ifdef MODULE_GNRC_IPV6
printf(" -> ");
bluetil_addr_ipv6_l2ll_print(own_addr);
#endif
puts("");
printf(" Free slots: %u/%u\n", free, MYNEWT_VAL_BLE_MAX_CONNECTIONS);