nimble_addr.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
23 #include "nimble/ble.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
32 #define NIMBLE_ADDR_STRLEN (28U)
33 
39 void nimble_addr_print(const ble_addr_t *addr);
40 
50 void nimble_addr_sprint(char *buf, const ble_addr_t *addr);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
void nimble_addr_sprint(char *buf, const ble_addr_t *addr)
Write the string representation of the given address into a buffer.
void nimble_addr_print(const ble_addr_t *addr)
Print the given address on STDIO.