# 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:** 3

<div class="post-metadata">

**Author:** ![BCUbing](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@BCUbing](https://forum.legato.io/u/BCUbing)\
**Post date:** [August 29, 2019, 10:08am UTC](https://forum.legato.io/t/cannot-get-callback-between-components-ipc-to-work-properly/4653/3 "2019-08-29T10:08:24Z")

</div>

Thanks for the response [jyijyi](https://forum.legato.io/u/jyijyi)!  
I got the callback working based on your application.

* * *

The reference code (as seen [here](https://docs.legato.io/latest/c_eventLoop.html#c_event_layeredPublishSubscribe)) is not correct, the following line:

> tempSensor\_ChangeHandlerRef\_t clientHandlerFunc = secondLayerHandlerFunc;

has to be:

> tempSensor\_ChangeHandlerFunc\_t clientHandlerFunc = secondLayerHandlerFunc;

Thanks again 🙂

---

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