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

expose tosc_vwrite #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

expose tosc_vwrite #9

wants to merge 1 commit into from

Conversation

s-ol
Copy link

@s-ol s-ol commented Jun 27, 2019

this can be useful for wrapping the writing method; e.g. like this:

void send(const char *addr, const char *fmt, ...) {
  static uint8_t tx_buf[256];

  va_list args;
  va_start(args, fmt);

  size_t len = tosc_vwrite(
    tx_buf, sizeof(tx_buf),
    addr, fmt, args
  );

  va_end(args);

  slip_send(tx_buf, len);
}

@s-ol
Copy link
Author

s-ol commented Jun 27, 2019

great library btw - i tried embedding a couple others on Arduino and they were either too bloated or flat out didn't work (not not compile, but crash etc). This one is lean and perfect!

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

Successfully merging this pull request may close these issues.

1 participant