nrf5/bluetooth: Adding new structure which can hold local address. Updating api prototype for ble_drv_address_get with a address structure by reference.

This commit is contained in:
Glenn Ruben Bakke 2017-04-02 16:39:14 +02:00
parent e3773e899f
commit 1402574b7d
1 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,11 @@
#include "modubluepy.h"
typedef struct {
uint8_t addr[6];
uint8_t addr_type;
} ble_drv_addr_t;
typedef struct {
uint8_t * p_peer_addr;
uint8_t addr_type;
@ -71,7 +76,7 @@ void ble_drv_stack_disable(void);
uint8_t ble_drv_stack_enabled(void);
void ble_drv_address_get(void);
void ble_drv_address_get(ble_drv_addr_t * p_addr);
void ble_drv_advertise(void);