You need to do something like this: https://github.com/espruino/Espruino/blob/master/src/jswrap_promise.c#L83
Note the JSWAT_* enums determine what arguments the function takes. Just use JSWAT_VOID in your case.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You need to do something like this: https://github.com/espruino/Espruino/blob/master/src/jswrap_promise.c#L83
Note the JSWAT_* enums determine what arguments the function takes. Just use JSWAT_VOID in your case.