For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Byte index

Sent request

Received response

0

B2 – Command code

B2 – Command code

1

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

2

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

3

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

Example downlink sent by the server: 0xB2;

Example command response: 0xB20001BB – The number of double press events is 443.

Byte index

Sent request

Received response

0

B3 – Command code

B3 – Command code

1

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

2

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

3

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

Example downlink sent by the server: 0xB3;

Example command response: 0xB30001CC – The number of triple press events is 443.

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?