I have a bit of a weird bug on my hands: when using le_avdata_PushRecord, the callback function passed as the handlerPtr argument never seems to get called anymore. Note that synchronous call to le_avdata_PushRecord does return LE_OK.
My initial thought was to try and reproduce this on a specific version of Legato. We confirmed this was working in Legato 17.11 in December 2017 so I rolled back and rebuilt Legato. Unfortunately I saw this issue on Legato 17.11, 18.02, 18.03, and 18.04 (skipped 18.01 due to other breaking bugs). I was sure to confirm the correct version was applied by invoking legato version on the target.
My best guess is that some interface between the AirVantage servers and AirVantage client has changed in some way.
I’m surprised the handler does not get returned. This feature is regularly tested per release.
Can you provide some debug logs?
Also which release and module are you using?
Thanks!
Sorry for letting this sit. What level do you want? I was thinking loglevel debug && logread -f | grep avc > avc.log. We’re using Legato 18.04 with a WP85 (and release 15 of the firmware).
We verified with legato-18.04.0 on top of WP85’s Release 15 and also using the latest Release 16(legato-18.06.1), We see that callback function is getting called and also we see that data is pushed successfully.
Please fallow the below steps to check that callback function is getting called and data is pushed successfully:
Create an application using the attached PushRecord.c (1.5 KB) file.
Start an AV session(at+wdss=1,1), wait for session to be started successfully.
Install the application on the target and start the application.
Thanks @muralinagraj. I never had much luck with this bug so I simply removed our usage of a push callback function. I’ll test this again early next week.