Skip to content

string with text as an argument #2

Description

@nmdonsk

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions