# Cannot get callback between components (IPC) to work properly

**URL:** <https://forum.legato.io/t/cannot-get-callback-between-components-ipc-to-work-properly/4653>\
**Category:** Legato Application Framework\
**Created:** [August 28, 2019, 12:33pm UTC](https://forum.legato.io/t/cannot-get-callback-between-components-ipc-to-work-properly/4653 "2019-08-28T12:33:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [January 24, 2024, 4:12am UTC](https://forum.legato.io/t/cannot-get-callback-between-components-ipc-to-work-properly/4653/5 "2024-01-24T04:12:43Z")

</div>

Here is an example to return STRUCT inside handler:

> <https://github.com/legatoproject/legato-af/blob/master/apps/sample/gpsApp/ctrlGPS.api>

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](https://forum.legato.io/uploads/short-url/i7Rcvb2YVwwfUrcJSbeN4LzZPO6.7z) (3.0 KB)

---

_[View the full topic](https://forum.legato.io/t/cannot-get-callback-between-components-ipc-to-work-properly/4653)._
