I know KaiOS application usually developed by html/js/css, but I develop some special functions that is not exist in the current Web API, so I develop the API of the special functions using C/C++, and now, I want to define JS API to call the C/C++ API, how should I do it? is there some document about it?
How can I develop applications that call my self c/c++ library API in KaiOS
165 views Asked by HelloXM At
2
You need to compile your C/C++ files to JS using Emscripten, then call your functions using this Emscripten API:
https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html