Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sysex Command #38

Open
Psydis opened this issue Aug 5, 2020 · 5 comments
Open

Sysex Command #38

Psydis opened this issue Aug 5, 2020 · 5 comments

Comments

@Psydis
Copy link

Psydis commented Aug 5, 2020

Is there any methods as "sendSysex" to customize protocol? SendStringData doesn't work fine in my project and I'd like to manage commands from SolidSoils or I fault to use that method.

Thanks

@jeroenwalter
Copy link

If you want to send your own custom sysex messages, then you'll have to write your own method to fill in your sysex message and send it to the Arduino.

Take a look at the methods SendSysExCommand, SetSamplingInterval or SendStringData https://github.com/SolidSoils/Arduino/blob/master/Solid.Arduino/ArduinoSession.cs for good examples.

Basically, fill an array with your sysex content and write it to the connection. It's not that hard.

@jeroenwalter
Copy link

jeroenwalter commented Aug 5, 2020

In my fork for .netcore I have made the methods SendSysEx and SendSysExWithReply that you maybe can use as inspiration.
https://github.com/jeroenwalter/Arduino/blob/netcore30/Solid.Arduino.Firmata/FirmataSession.cs

@Psydis
Copy link
Author

Psydis commented Aug 5, 2020

In my fork for .netcore I have made method SendSysEx and SendSysExWithReply that you maybe can use as inspiration.
https://github.com/jeroenwalter/Arduino/blob/netcore30/Solid.Arduino.Firmata/FirmataSession.cs

That's incredible ... I just try to compile your fork some minutes ago on Core 3.1!!! I'll let you know if works!!!
Thanks!

@jeroenwalter
Copy link

It's already configured for netcore 3.1 :)

@Psydis
Copy link
Author

Psydis commented Aug 5, 2020

It's already configured for netcore 3.1 :)

I know but i'm a maniac ... i love to recompile code, so i can understand it better!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants