Wirepas SDK
msap.h File Reference

Go to the source code of this file.

Functions

bool Msap_handleFrame (waps_item_t *item)
 Process received request. More...
 
waps_item_tMsap_getStackStatusIndication (void)
 Used to generate an indication when stack reboots. More...
 
void Msap_handleAppConfig (uint8_t seq, const uint8_t *config, uint16_t interval, waps_item_t *item)
 Create new app config indication. More...
 
void Msap_onScannedNbors (waps_item_t *item)
 Generate an indication after to scan neighbors is done. More...
 

Function Documentation

◆ Msap_getStackStatusIndication()

waps_item_t* Msap_getStackStatusIndication ( void  )

Used to generate an indication when stack reboots.

Returns
waps_item containing stack status

◆ Msap_handleAppConfig()

void Msap_handleAppConfig ( uint8_t  seq,
const uint8_t *  config,
uint16_t  interval,
waps_item_t item 
)

Create new app config indication.

Note
This should only be called when new DREQ are received
Parameters
seqApplication config sequence
configNew application config data
intervalDiagnostic interval in seconds
itemMemory area where indication is constructed to

◆ Msap_handleFrame()

bool Msap_handleFrame ( waps_item_t item)

Process received request.

Parameters
itemStructure containing the received request frame
Returns
True, if a response was generated

◆ Msap_onScannedNbors()

void Msap_onScannedNbors ( waps_item_t item)

Generate an indication after to scan neighbors is done.

Parameters
itemWhere the indication is generated