# Firmware update API

**URL:** <https://forum.legato.io/t/firmware-update-api/6407>\
**Category:** Uncategorized\
**Created:** [January 25, 2023, 6:28pm UTC](https://forum.legato.io/t/firmware-update-api/6407 "2023-01-25T18:28:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gi1](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gi1](https://forum.legato.io/u/gi1)\
**Post date:** [January 25, 2023, 6:28pm UTC](https://forum.legato.io/t/firmware-update-api/6407/1 "2023-01-25T18:28:01Z")

</div>

Hello,  
any sample on fwupdate api? My intention is to place an update file (legato.cwe cause my app are built during legato compilation) on an http server then download and install the new firmware. Is it possible?

Regards,  
Gianmaria

---

<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 26, 2023, 1:14am UTC](https://forum.legato.io/t/firmware-update-api/6407/2 "2023-01-26T01:14:23Z")

</div>

you can use an unsandboxed application to call “fwupdate” command by system() API.

> **[fwupdate - Legato Docs](https://docs.legato.io/latest/toolsTarget_fwUpdate.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

For source code, you can see here:

> <https://github.com/legatoproject/legato-af/blob/master/apps/tools/fwupdate/fwupdate.c>

---

<div class="post-metadata">

**Author:** ![gi1](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gi1](https://forum.legato.io/u/gi1)\
**Post date:** [January 26, 2023, 9:39pm UTC](https://forum.legato.io/t/firmware-update-api/6407/3 "2023-01-26T21:39:54Z")

</div>

Thanks a lot, will try your solution

Gian
