jyijyi
January 24, 2024, 4:12am
5
Here is an example to return STRUCT inside handler:
//--------------------------------------------------------------------------------------------------
/**
*
* This API is used by the controller to control the flow of the application. Certain arguments are
* passed from the command line to the application using the controller. The controller waits for
* the right event and gets passed a struct which is filled with results by the application and
* prints the results to the console.
* <HR>
*
* Copyright (C) Sierra Wireless Inc.
*/
//--------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
/**
* Used for finding points of intereset. Returns before JSON response is parsed. So, return
* value does not guarantee success of entire program.
*
* @return
This file has been truncated. show original
You can see if it can be ported to your existing application.
On the other hand, you can do another IPC call inside the handler to get the required data.
Please see this sample application:
IPC_step4_payload_test.7z (3.0 KB)