shenhome

Results 2 issues of shenhome

I generated .js file for using it in browser side and meet the below error. Uncaught TypeError: net.createConnection is not a function at Object.streamBuilder (browserMqtt2.js:5992) at MqttClient.wrapper [as streamBuilder] (browserMqtt2.js:6780)...

const cmd = Buffer.alloc(32); cmd[0] = 0xA2; cmd[1] = 0x01; client.publish('topic, cmd); Above code is ok when at node.js server. But it's not ok when doing the same thing at...

stale