You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • If you mean using Espruino directly from C code, you want something like:

    JsVar *v = jsvNewFromString("......");
    jsvUnLock(jspEvaluateVar(jsiGetParser(),­ lineToExecute, 0));

    Note that EvaluateVar returns a result as well.

    Espruino can't execute directly from char* strings (only from JsVar-based strings).


Avatar for Gordon @Gordon started