作者:王锟2004 | 来源:互联网 | 2023-09-01 03:22
ItrytounderstandandimplementtheMQTT-Clientfornode.js,whichcanbefoundat:http:jahbrom
I try to understand and implement the MQTT-Client for node.js, which can be found at: http://jahbromo.blogspot.de/2011/12/client-mqttt-Javascript.html
我尝试了解并实现node.js的MQTT-Client,可以在以下网址找到:http://jahbromo.blogspot.de/2011/12/client-mqttt-Javascript.html
I keep getting:
var client = new mqtt.MQTTClient(1883,'127.0.0.1','mirror');
^
TypeError: undefined is not a function
我一直得到:var client = new mqtt.MQTTClient(1883,'127.0.0.1','mirror'); ^ TypeError:undefined不是函数
I'm relatively new to node.js I don't understand why node.js is giving this error
我对node.js比较新,我不明白为什么node.js会给出这个错误
1 个解决方案