Thanks to visit codestin.com
Credit goes to github.com

Skip to content

string with text as an argument #2

Open
@nmdonsk

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?

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