Wirepas SDK
waps.h File Reference

Detailed Description

WAPS layer main module.

WAPS processes primitives from lower level, serves queries, forwards upper layer primitives. WAPS takes care of application registrations.

Definition in file waps.h.

Go to the source code of this file.

Functions

bool Waps_init (uint32_t baudrate, bool flow_ctrl)
 Initializes waps and modules it requires. It relies on uart communication. More...
 
void Waps_packetSent (app_lib_data_tracking_id_t tracking_id, uint8_t src_ep, uint8_t dst_ep, uint32_t queue_time, app_addr_t dst_addr, bool success)
 Packet sent callback. More...
 

Function Documentation

◆ Waps_init()

bool Waps_init ( uint32_t  baudrate,
bool  flow_ctrl 
)

Initializes waps and modules it requires. It relies on uart communication.

Parameters
baudrateBaudrate for the uart communication
flow_ctrlIs flow control enabled
Returns
True if successful, false otherwise

◆ Waps_packetSent()

void Waps_packetSent ( app_lib_data_tracking_id_t  tracking_id,
uint8_t  src_ep,
uint8_t  dst_ep,
uint32_t  queue_time,
app_addr_t  dst_addr,
bool  success 
)

Packet sent callback.

Parameters
tracking_idTracking ID of PDU
src_epSource end point
dst_epDestination end point
queue_timeQueuing time of packet
dst_addr
successTrue: Message was sent OK to next hop. False: Message was discarded (timed out)