In a C native module, I want to call other jswrap functions and asign my C function as the callback.
How to do that? For example, void mycallback();
void mycallback(){ jsiConsolePrint("Hello world"); } jswrap_net_connect(JsVar *options, JsVar *callback, SocketType socketType); // here I want asign mycallback( ) as the callback
@Aifer 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.
In a C native module, I want to call other jswrap functions and asign my C function as the callback.
How to do that?
For example,
void mycallback();