Gleb Klochkov / Mbed OS Climatcontroll_Main

Dependencies:   esp8266-driver

Embed: (wiki syntax)

« Back to documentation index

thread_bbr_api.h File Reference

thread_bbr_api.h File Reference

Thread backbone border router (BBR) application interface. More...

Go to the source code of this file.

Functions

int thread_bbr_start (int8_t interface_id, int8_t backbone_interface_id)
 Start backbone border router service.
int thread_bbr_timeout_set (int8_t interface_id, uint32_t timeout_a, uint32_t timeout_b, uint32_t delay)
 Set the bbr timeout values.
int thread_bbr_validation_interface_address_set (int8_t interface_id, const uint8_t *addr_ptr, uint16_t port)
 Set the Thread validation interface destination address.
void thread_bbr_stop (int8_t interface_id)
 Stop backbone Border router.

Detailed Description

Thread backbone border router (BBR) application interface.

This is Thread backbone Border router service. When started the module takes care of starting the components that enables default border router functionality in Thread mesh network.

Definition in file thread_bbr_api.h.


Function Documentation

int thread_bbr_start ( int8_t  interface_id,
int8_t  backbone_interface_id 
)

Start backbone border router service.

Enables the mDNS responder with default service name. <rand>-ARM-<Network name> if backbone interface is enabled and allows routing. Publishes Default route with DHCP addressing Enables ND proxy

Parameters:
interface_idThread network interface id.
backbone_interface_idbackbone interface id.
Returns:
0 on success
<0 in case of errors

Definition at line 1037 of file thread_bbr_api.c.

void thread_bbr_stop ( int8_t  interface_id )

Stop backbone Border router.

Parameters:
interface_idinterface ID of the Thread network
Returns:
0 on success
<0 in case of errors

Definition at line 1107 of file thread_bbr_api.c.

int thread_bbr_timeout_set ( int8_t  interface_id,
uint32_t  timeout_a,
uint32_t  timeout_b,
uint32_t  delay 
)

Set the bbr timeout values.

Default timeout values are used if not called.

If this function is called it will trigger the modification to thread network causing' refreshing of registrations.

Parameters:
interface_idinterface ID of the Thread network.
timeout_atimeout a set. 0 = do not change.
timeout_btimeout_b set. 0 = do not change
delayJitter delay value. 0 do not change
Returns:
0 on success
<0 in case of errors

Definition at line 1079 of file thread_bbr_api.c.

int thread_bbr_validation_interface_address_set ( int8_t  interface_id,
const uint8_t *  addr_ptr,
uint16_t  port 
)

Set the Thread validation interface destination address.

Parameters:
interface_idinterface ID of the Thread network.
addr_ptrIPv6 address.
portUDP port.
Returns:
0 on success
<0 in case of errors

Definition at line 1093 of file thread_bbr_api.c.