Skip to content

string with text as an argument #2

New issue

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

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

Already on GitHub? # to your account

Open
nmdonsk opened this issue Aug 22, 2024 · 0 comments
Open

string with text as an argument #2

nmdonsk opened this issue Aug 22, 2024 · 0 comments

Comments

@nmdonsk
Copy link

nmdonsk commented Aug 22, 2024

hi, how can I pass a string with text as an argument?
what do I need to change to pass the text argument?

extern void mPrint(String x) {
Serial.println(x);
}
mjs_ffi(vm, "print", (cfn_t) mPrint, "vi"); // Import write()

"vi" - it means integer (int)? how String?

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

No branches or pull requests

1 participant