# Notehub Host Firmware "current version" not updating after successful firmware update

**URL:** <https://discuss.blues.com/t/notehub-host-firmware-current-version-not-updating-after-successful-firmware-update/579>\
**Category:** Uncategorized\
**Created:** [December 29, 2021, 2:05am UTC](https://discuss.blues.com/t/notehub-host-firmware-current-version-not-updating-after-successful-firmware-update/579 "2021-12-29T02:05:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jake\_anderson](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jake\_anderson](https://discuss.blues.com/u/jake_anderson)\
**Post date:** [December 29, 2021, 2:05am UTC](https://discuss.blues.com/t/notehub-host-firmware-current-version-not-updating-after-successful-firmware-update/579/1 "2021-12-29T02:05:57Z")

</div>

Hello first time poster here. I have been working on using the DFU functionality to give OTA updates to my MCU. I believe that I have implemented this successfully however I am wondering if I have something missing. after the success of the update I am not seeing the current version populate in notehub. see below

 ![image](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/ac1e6729b280f36565c10a7375dc000b7d829eab.png)

Serial monitor output

```auto
dfu: successfully transferred offset:790528 len:3744
{"req":"hub.set","mode":"dfu-completed","body":{"agent":"note-arduino","compiler":"gcc 8.4.0","req_interface":"i2c","cpu_name":"esp32"}}
{}
dfu: MD5 of image: e8485c0987de0f7b33bcab66a2123ce0
dfu: MD5 of download: e8485c0987de0f7b33bcab66a2123ce0
{"req":"dfu.status","stop":true}
{"status":"successfully downloaded","mode":"ready","on":true}
dfu: restart system
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1284
load:0x40078000,len:12836
load:0x40080400,len:3032
entry 0x400805e4
(⌐▨_▨) Welcome to Malibu!
{"req":"note.add","file":"sensors.qo","sync":false,"body":{"ambientTemp":19.75,"probeTemp":19.3125}}
{"total":2}
{"req":"dfu.status"}
{"status":"successful firmware update","mode":"completed","on":true}

```

I am not sure if this is a bug or if I am doing something wrong. any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![jake\_anderson](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jake\_anderson](https://discuss.blues.com/u/jake_anderson)\
**Post date:** [December 29, 2021, 2:44am UTC](https://discuss.blues.com/t/notehub-host-firmware-current-version-not-updating-after-successful-firmware-update/579/2 "2021-12-29T02:44:01Z")

</div>

I figure out my issue. It appears reporting the firmware version does not happen in the dfuPoll() function so it must be called in the setup function. i.e.

```auto
req = notecard.newRequest("dfu.status");
if (req != NULL) {
  JAddStringToObject(req, "version", firmwareVersion());
  notecard.sendRequest(req);
}

```
