Open dakhnod opened 6 months ago
The CLI isn't a stable API, so it may not be a good idea to depend on that if you are targeting productions.
I think it's simpler and less code to use the library directly rather than building a client-server mode with a CLI daemon. I would suggest
Also, SWIG cannot handle std::shared_ptr
Do you mean SWIG_javascript doesn't support translating std::shared_ptr? I think it's used in only two places in commissioner.hpp and you can ignore those methods and create replacements with node.js addon?
I am creating a nodeJS application that is supposed to help with device commissioning. From that application, I want to be able to interface with the device commissioning process.
Unfortunately, the commissioning-cli does not provide any realistic way of interfacing with JavaScript code.
The SWIG interface file doesn't work, since it has a strong dependency on Java. Also, SWIG cannot handle std::shared_ptr.
Some solutions I have in mind are:
Is there any clever Idea I am missing?