# How to push data from app (build by legato) to airvantage

**URL:** <https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320>\
**Category:** Legato Application Framework\
**Created:** [June 8, 2018, 9:23am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320 "2018-06-08T09:23:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![comcom](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@comcom](https://forum.legato.io/u/comcom)\
**Post date:** [June 8, 2018, 9:23am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320/1 "2018-06-08T09:23:55Z")

</div>

I started researching about FX30 (gateway). I want to push data from app (build by legato and code with C language )) to Airvantage Cloud but i dont know how to start ? I used to read some document from [legato.io](http://legato.io) but it is a mess up and have no example. Please! if you have any reference, coding example,experiences about it, please support to me !!!

---

<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:** [June 11, 2018, 2:17am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320/2 "2018-06-11T02:17:26Z")

</div>

did you try the sample application “lwm2mAirVantageControl”?

---

<div class="post-metadata">

**Author:** ![comcom](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@comcom](https://forum.legato.io/u/comcom)\
**Post date:** [June 13, 2018, 2:51am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320/3 "2018-06-13T02:51:15Z")

</div>

It is not useful. For example, i have Temperature, i want to set the variable values (le\_avdata\_SetInt() this is API support), and then push it to cloud (this here I Don’t Find Out any API support), and finally, i want to see Temperature to display in Airvantage Cloud

---

<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:** [June 13, 2018, 3:07am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320/4 "2018-06-13T03:07:41Z")

</div>

You need to use le\_avdata\_PushRecord() API to push the data to AVMS.  
You can have a look on the sample RedSensorToCloud on MangoH red board here:

> **[GitHub - mangOH/RedSensorToCloud: A Legato app that publishes sensor data...](https://github.com/mangOH/RedSensorToCloud)**
>
> A Legato app that publishes sensor data from the mangOH Red to AirVantage using LWM2M - GitHub - mangOH/RedSensorToCloud: A Legato app that publishes sensor data from the mangOH Red to AirVantage u...

---

<div class="post-metadata">

**Author:** ![comcom](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@comcom](https://forum.legato.io/u/comcom)\
**Post date:** [June 13, 2018, 4:31am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320/5 "2018-06-13T04:31:22Z")

</div>

Thanks jyijyi, I have a another question, I use le\_avdata.api from API to support for AVMS, after that my app automatic creat a le\_avdata\_interface.h in inc-gen folder. i know that every function such as le\_avdata\_PushRecord(), le\_avdata\_SetInt() in le\_avdata\_interface.h , but i can’t find out le\_avdata\_PushRecord(), Do you think issue from currently version legato ?

---

<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:** [June 13, 2018, 4:43am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320/6 "2018-06-13T04:43:43Z")

</div>

I guess you are using legato 16.x, maybe this API is not available inside this legato version.  
Can you search your legato source code to verify this?

---

<div class="post-metadata">

**Author:** ![comcom](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@comcom](https://forum.legato.io/u/comcom)\
**Post date:** [June 13, 2018, 4:57am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320/7 "2018-06-13T04:57:37Z")

</div>

yes, you are right. I check it out from" help bar"

Developer Studio 5.3.1

Copyright (c) Sierra Wireless 2009-2018  
Build Version 5.3.1.201802071201  
Supported Legato versions: [16.01 - 18.03]

Please refer a " suitable" legato version to me.

---

<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:** [June 13, 2018, 5:00am UTC](https://forum.legato.io/t/how-to-push-data-from-app-build-by-legato-to-airvantage/3320/8 "2018-06-13T05:00:57Z")

</div>

seems the FX30 only have official release on legato 16.x.
