Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_simSap_server.h File Reference
#include "legato.h"
#include "taf_simSap_common.h"

Go to the source code of this file.

Functions

le_msg_ServiceRef_t taf_simSap_GetServiceRef (void)
 
le_msg_SessionRef_t taf_simSap_GetClientSessionRef (void)
 
void taf_simSap_AdvertiseService (void)
 
taf_simSap_MessageHandlerRef_t taf_simSap_AddMessageHandler (taf_simSap_MessageHandlerFunc_t handlerPtr, void *contextPtr)
 
void taf_simSap_RemoveMessageHandler (taf_simSap_MessageHandlerRef_t handlerRef)
 
le_result_t taf_simSap_SendMessage (const uint8_t *messagePtr, size_t messageSize)
 

Function Documentation

◆ taf_simSap_GetServiceRef()

le_msg_ServiceRef_t taf_simSap_GetServiceRef ( void  )

Get the server service reference

◆ taf_simSap_GetClientSessionRef()

le_msg_SessionRef_t taf_simSap_GetClientSessionRef ( void  )

Get the client session reference for the current message

◆ taf_simSap_AdvertiseService()

void taf_simSap_AdvertiseService ( void  )

Initialize the server and advertise the service.

◆ taf_simSap_AddMessageHandler()

taf_simSap_MessageHandlerRef_t taf_simSap_AddMessageHandler ( taf_simSap_MessageHandlerFunc_t  handlerPtr,
void *  contextPtr 
)

Handler to get SAP response messages for specific requested messages from the subscibtion module. Reference type used by Add/Remove functions for EVENT 'taf_simSap_Message' Add handler function for EVENT 'taf_simSap_Message'

Event to notify and send a message.

Add handler function for EVENT 'taf_simSap_Message'

Event to notify and send a message.

Parameters
[in]handlerPtrMessage handler.
[in]contextPtr

◆ taf_simSap_RemoveMessageHandler()

void taf_simSap_RemoveMessageHandler ( taf_simSap_MessageHandlerRef_t  handlerRef)

Remove handler function for EVENT 'taf_simSap_Message'

Parameters
[in]handlerRef

◆ taf_simSap_SendMessage()

le_result_t taf_simSap_SendMessage ( const uint8_t *  messagePtr,
size_t  messageSize 
)

Sends a message to the service which the sends it to the subscription module.

Returns
  • LE_OK – Succeeded.
  • LE_BAD_PARAMETER – Message is too long.
Parameters
[in]messagePtrThe message.
[in]messageSize