guys i want to add a custom urc in the code
while (TRUE)
{
Ql_OS_GetMessage(&msg);
switch(msg.message)
{
// Application will receive this message when OpenCPU RIL starts up.
// Then application needs to call Ql_RIL_Initialize to launch the initialization of RIL.
case MSG_ID_RIL_READY:
APP_DEBUG(“<-- RIL is ready → \r\n”);
Ql_RIL_Initialize();
//
// After RIL initialization, developer may call RIL-related APIs in the .h files in the directory of SDK\ril\inc
// RIL-related APIs may simplify programming, and quicken the development.
//
break;
// Handle URC messages.
// URC messages include "module init state", "CFUN state", "SIM card state(change)",
// "GSM network state(change)", "GPRS network state(change)" and other user customized URC.
case MSG_ID_URC_INDICATION:
switch (msg.param1)
{
case URC_COMING_CALL_IND:
{
ST_ComingCall* pComingCall = (ST_ComingCall*)msg.param2;
APP_DEBUG("<-- Coming call, number:%s, type:%d -->\r\n", pComingCall->phoneNumber, pComingCall->type);
// Enable module sleep mode
ret = Ql_SleepEnable();
APP_DEBUG("\r\n<-- Request sleep mode, ret=%d -->\r\n\r\n", ret);
break;
}
default:
//APP_DEBUG("<-- Other URC: type=%d\r\n", msg.param1);
break;
}
break;
default:
break;
}
}
in the above switch case .
i want msg.message to check for gps related urc so how to do it