Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

[Firmata] missing void startSysex(void) method #30

Closed
zfields opened this issue Jun 17, 2015 · 5 comments
Closed

[Firmata] missing void startSysex(void) method #30

zfields opened this issue Jun 17, 2015 · 5 comments

Comments

@zfields
Copy link
Contributor

zfields commented Jun 17, 2015

No description provided.

@ooeygui
Copy link
Member

ooeygui commented Aug 11, 2015

Can you supply information as to why it is needed?

@turkycat
Copy link
Contributor

Firmata.cpp calls it "startSysex" / "endSysex" while I named it "beginSysex" / "endSysex" in UwpFirmata. I agree that it should have matched the latter, but not sure if we should change it now?

@zfields
Copy link
Contributor Author

zfields commented Aug 13, 2015

We are trying to provide a familiar API surface, so we should at least have parity. I would take the logic from beginSysex(), move it startSysex(), then have beginSysex() call startSysex() and deprecate beginSysex().

@turkycat
Copy link
Contributor

We should revisit this issue. New UwpFirmata implementation does not use startSysex() or endSysex(). New function signatures are:

[Windows::Foundation::Metadata::DefaultOverload]
void
sendSysex(
        SysexCommand command_,
        IBuffer ^buffer_
    );

and

void
    sendSysex(
        uint8_t command_,
        IBuffer ^buffer_
    );

which allow the entire IBuffer to be sent at once. No more need to invoke 3 functions for one concept. It does not perfectly match the Firmata API (as this issue was meant to resolve) but is arguably more sensible on our platform.

@zfields
Copy link
Contributor Author

zfields commented Oct 29, 2015

I'll close this issue. The original observation is no longer valid.

@zfields zfields closed this as completed Oct 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants