|
楼主 |
发表于 2021-3-17 14:10
|
显示全部楼层
改了端口后报错:
- D:\Young\1\2\nodejs>ts-node .\example\example.ts
- {
- detail: {
- broker: 'aliyun',
- deviceName: '93DDBA54XU5QFEAYFIBG8A3G',
- host: 'mqtts://public.iot-as-mqtt.cn-shanghai.aliyuncs.com',
- iotId: 'sl3O67hAN9deaHuwj3Hw000000',
- iotToken: '^1^1615961384356^2eb769ec4a63a0b',
- port: '1883',
- productKey: 'JgCGbHlndgz',
- uuid: 'c20b9c2c7bec11eba1ff5254'
- },
- message: 1000
- }
- mqtt broker:aliyun
- mqtt blinker connected
- mqtt blinker close
- D:\Young\1\2\nodejs\node_modules\bonjour\lib\registry.js:117
- cb(!!exists)
- ^
- Error: Service name is already in use on the network
- at D:\Young\1\2\nodejs\node_modules\bonjour\lib\registry.js:47:31
- at done (D:\Young\1\2\nodejs\node_modules\bonjour\lib\registry.js:117:5)
- at EventEmitter.onresponse (D:\Young\1\2\nodejs\node_modules\bonjour\lib\registry.js:107:75)
- at EventEmitter.emit (events.js:315:20)
- at EventEmitter.emit (domain.js:486:12)
- at Socket.<anonymous> (D:\Young\1\2\nodejs\node_modules\multicast-dns\index.js:49:43)
- at Socket.emit (events.js:315:20)
- at Socket.EventEmitter.emit (domain.js:486:12)
- at UDP.onMessage (dgram.js:919:8)
- D:\Young\1\2\nodejs>
复制代码
|
|