Key POWER - "press" or "release"?

Key POWER - "press" or "release"?

edited 04/24/2018 - 12:17 in SoundTouch API
srbtsrbt Posts: 2Member

Hello,

I've noticed that, while the doc specifies POWER as a "press" key value, the toggle only works as intended when used as a "release" key value. Using "press" merely displays what seems to be the current battery status. Is this an error in the API documentation or the actual implementation?

Thanks in advance.

Comments

  • edited 04/27/2018 - 13:30
    Zach@Bose[email protected] Posts: 156Admin

    Hi srbt,

    Turns out you've found a gap in our documentation on this one. SoundTouch Portable (which I can deduce you're using since it's the only battery-powered SoundTouch product!) does in fact require a "release" rather than a "press". This is not reflected in our documentation currently, though we will update that soon.

    For POWER, to handle both cases, I strongly recommend always sending a "press" immediately followed by a "release" command, as this will successfully handle both cases.

  • edited 05/01/2018 - 14:52
    Zach@Bose[email protected] Posts: 156Admin

    Note to all, we've updated the documentation for /key to better capture the unique nature of the POWER key value.

    Thank you srbt for noting this issue so that we could remedy it!

Sign In or Register to comment.