I just copied, pasted, and run code from example usage, and that error occurs. Please help me with this. Thank you.
please change api.listen to api.listenMqtt as api.listen is unusable. thanks.
api.listen
api.listenMqtt
Thanks @lequanglam. It works!
Most helpful comment
please change
api.listentoapi.listenMqttasapi.listenis unusable. thanks.