This is the error thrown by the console when I try writing the code on node.js using the bolt-iot-wrapper npm.
Here is the code. (I have replaced the x’s with correct device ID and API key):
And here is the error:
If anyone has tried integrating the bolt API with node.js, please help me resolve this issue. Thank you.
Do let me know in case you need further assistance.
Thank you sir. I did go through that documentation earlier. The script on browser side is working fine, the problem occurs when I use the npm package for node.