Button press event counters

Get press event counter

These commands are available for devices with firmware version ≥ 1.3.

These commands return the counter value for button press events. Each counter tracks a specific type of press: single, double, or triple. The counter increments every time the corresponding press event occurs. The values are stored in long-term (EEPROM) memory, ensuring they persist after a device restart.

The command is sent together with the keepalive of the device. The keepalive data in the example below is omitted for clarity.

Byte index

Sent request

Received response

0

B1 – Command code

B1 – Command code

1

Single press event counter, bits [23:16].

2

Single press event counter, bits [15:8].

3

Single press event counter, bits [7:0].

Example downlink sent by the server: 0xB1;

Example command response: 0xB10001AA – The number of single press events is 426.

Clear press event counter

This command is available for devices with firmware version ≥ 1.3.

Clears the press event counter for the specified press type (1 - single, 2 - double, or 3 - triple). This command allows the system to clear the accumulated press event count stored in long-term (EEPROM) memory, ensuring that the counter resets to zero for the selected press type.

Byte index

Bit index

Received response

0

-

20 – The command code.

1

-

XX - Clear (1 - single, 2 - double, or 3 - triple) press event counter.

Example downlink: 0x2001 – Clear the single press event counter.

Last updated

Was this helpful?