# About reset of mid and time in messagepack

**URL:** <https://bbs.aprbrother.com/t/about-reset-of-mid-and-time-in-messagepack/1824>\
**Category:** BLE Gateway\
**Created:** [February 7, 2022, 2:08am UTC](https://bbs.aprbrother.com/t/about-reset-of-mid-and-time-in-messagepack/1824 "2022-02-07T02:08:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonnydan](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/t/f17d59/32.png) [@tonnydan](https://bbs.aprbrother.com/u/tonnydan)\
**Post date:** [February 7, 2022, 2:08am UTC](https://bbs.aprbrother.com/t/about-reset-of-mid-and-time-in-messagepack/1824/1 "2022-02-07T02:08:42Z")

</div>

According to the [gateway message definition](https://wiki.aprbrother.com/en/User_Guide_For_AB_BLE_Gateway_V4.html#performance), there are a `mid` field means message ID and a `time` field means time passed after the gateway booted.

However, the two fields are found to be reset in running which means the same `mid` messages and/or the same `time` message will be found. May I know why the fields are reset and the reset mechanism of them please?

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [February 8, 2022, 1:59am UTC](https://bbs.aprbrother.com/t/about-reset-of-mid-and-time-in-messagepack/1824/2 "2022-02-08T01:59:51Z")

</div>

BLE gateway restart if network is unstable or app server can’t be connected. The mid and time fields will be reset when the gateway restart.

---

<div class="post-metadata">

**Author:** ![tonnydan](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/t/f17d59/32.png) [@tonnydan](https://bbs.aprbrother.com/u/tonnydan)\
**Post date:** [February 8, 2022, 4:10am UTC](https://bbs.aprbrother.com/t/about-reset-of-mid-and-time-in-messagepack/1824/3 "2022-02-08T04:10:28Z")

</div>

Thanks a lot for your kind reply. Please confirm the following 2 points:

1. The `mid` and time` fields will be reset after gateway restarted and/or (re)booted (connect to the power);
2. If no restart or reboot of a gateway, the `mid` and time` values will continuously increase without interruptions and/or reset.

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [February 8, 2022, 9:45am UTC](https://bbs.aprbrother.com/t/about-reset-of-mid-and-time-in-messagepack/1824/4 "2022-02-08T09:45:11Z")

</div>

1. yes
2. yes
