# Heartbeat\_on\_empty behavior

**URL:** <https://forum.sierrawireless.com/t/heartbeat-on-empty-behavior/27148>\
**Category:** Octave\
**Created:** [June 1, 2022, 8:03pm UTC](https://forum.sierrawireless.com/t/heartbeat-on-empty-behavior/27148 "2022-06-01T20:03:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpinc](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@dpinc](https://forum.sierrawireless.com/u/dpinc)\
**Post date:** [June 1, 2022, 8:03pm UTC](https://forum.sierrawireless.com/t/heartbeat-on-empty-behavior/27148/1 "2022-06-01T20:03:07Z")

</div>

If heartbeat\_on\_empty is interpreted to be enabled by Octave, messages are generated regardless of whether or not data is present in the S&F buffer and consumes the equivalent of 20 billable data points per occurrence.

The purpose of heartbeat\_on\_empty is apparently to send a message to the cloud at the specified period if no other data had been sent (i.e., “on empty”).

The docs indicate that “…each communication of data sent to the cloud, updates the last known online status of the device in Octave. However, it can be useful to have the device perform this refresh even _if there isn’t anything in the Store and Forward buffer_.”

Sierra confirmed that excess messages are generated when Octave interpreted heartbeat\_on\_empty was enabled for a test where data was sent every hour (the S&F period);  
in the test case, there was always _data in the Store and Forward buffer_ during each S&F period.

Two questions arise:

1. Why is the heartbeat message generated at all when data is present in the Store and Forward buffer (i.e. not empty) during the period?

2. Why does the heartbeat message consume an entire billable message which should accommodate 20 data points? In a case where the data in the Store and Forward buffer, did not fill a single message, the heartbeat message could have been accommodated in the remaining message space without the need to generate an entirely new message.

---

<div class="post-metadata">

**Author:** ![amons](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/amons/32/4887_2.png) [@amons](https://forum.sierrawireless.com/u/amons)\
**Post date:** [June 6, 2022, 8:32am UTC](https://forum.sierrawireless.com/t/heartbeat-on-empty-behavior/27148/2 "2022-06-06T08:32:55Z")

</div>

Hello David

1.: No HB message should be generated when there is data to be sent in the S&F. We are looking into why it happened on your device.

1. as HB is only meant to be sent when there is nothing else to transfer, it is accounted for as a communication. It can be disabled if wanted (to prevent any communication, with one drawback that you have no information on the device “last communication” information until there is actual data to transfer). A Heartbeat counts as a full message at it requires establishing a data session, doing a security handshake and sending a small message)

A.
