DBR701::GetCapEmergencyAlertsCore
10/16/2008
This method requests the Common Alerting Protocol (CAP) core emergency alerts from the MSN Direct receiver.
This is an asynchronous method.
Syntax
int GetCapEmergencyAlertsCore();
Parameters
None.
Return Value
Returns the transaction ID of the request that is sent to the MSN Direct receiver; returns -1 if the request fails.
Remarks
CAP is an XML-based protocol used for sending public warnings and emergencies to devices that support it.
The GetCapEmergencyAlertsCore method uses RequestSync to perform the transaction, with CAP_EMERGENCY_ALERTS_CORE specified as the applicationType parameter.
The Common Alerting Protocol (CAP) core emergency alerts are returned asynchronously as the messageFromReceiver parameter in the ProcessInMessageFromReceiver call. The CapEmergencyAlertsCoreMsg object in the sample application illustrates how to parse this type of message.
Note
The functions in the sample message classes handle data that arrives in a specific format in the payload of an incoming message. If you modify the way in which data is extracted from incoming messages, the message classes will not work as expected.
Requirements
Header | DBR701.h |
Library | DBRLib.lib |
Windows Embedded CE | Windows CE 5.0, Windows Embedded NavReady 2009 |
See Also
Tasks
Adding Custom Classes for Incoming Messages