Send message on button start AND end #1

Open
opened 2024-06-11 08:57:48 +00:00 by StephanRichter · 0 comments

Currently, only the release of a button is sent together with the button press duration.
For many applications, it would be helpful to send two messages:

  1. when the button is pressed, e.g. {nano:1,btn:1,ms:0}
  2. when the button is released, e.g. {nano:1,btn:1,ms:523}

This is not as simple as it sounds:
The release event will probably be triggerd while the device is busy sending the first message.

Currently, only the release of a button is sent together with the button press duration. For many applications, it would be helpful to send two messages: 1. when the button is pressed, e.g. `{nano:1,btn:1,ms:0}` 2. when the button is released, e.g. `{nano:1,btn:1,ms:523}` This is not as simple as it sounds: The release event will probably be triggerd while the device is busy sending the first message.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: StephanRichter/Nano-485#1