Network Interface API

#include "src/btstack_network.h"

btstack_network_init

void btstack_network_init(void (*send_packet_callback)(const uint8_t * packet, uint16_t size));

Initialize network interface

Parameters

Source


btstack_network_up

int  btstack_network_up(bd_addr_t network_address);

Bring up network interfacd

Parameters

Returns

Source


btstack_network_down

int  btstack_network_down(void);

Shut down network interfacd

Parameters

Returns

Source


btstack_network_process_packet

void btstack_network_process_packet(const uint8_t * packet, uint16_t size);

Receive packet on network interface, e.g., forward packet to TCP/IP stack

Parameters

Source


btstack_network_packet_sent

void btstack_network_packet_sent(void);

Notify network interface that packet from send_packet_callback was sent and the next packet can be delivered.

Source


btstack_network_get_name

const char * btstack_network_get_name(void);

Get network name after network was activated

Note: e.g. tapX on Linux, might not be useful on all platforms

Returns

Source