增加晶全app静态页面

This commit is contained in:
微微一笑
2025-07-05 14:49:26 +08:00
parent 194035cf79
commit aede64dacd
2323 changed files with 524101 additions and 0 deletions

24
node_modules/mqtt/examples/client/secure-client.js generated vendored Normal file
View File

@ -0,0 +1,24 @@
'use strict'
var mqtt = require('../..')
var path = require('path')
var fs = require('fs')
var KEY = fs.readFileSync(path.join(__dirname, '..', '..', 'test', 'helpers', 'tls-key.pem'))
var CERT = fs.readFileSync(path.join(__dirname, '..', '..', 'test', 'helpers', 'tls-cert.pem'))
var PORT = 8443
var options = {
port: PORT,
key: KEY,
cert: CERT,
rejectUnauthorized: false
}
var client = mqtt.connect(options)
client.subscribe('messages')
client.publish('messages', 'Current time is: ' + new Date())
client.on('message', function (topic, message) {
console.log(message)
})

13
node_modules/mqtt/examples/client/simple-both.js generated vendored Normal file
View File

@ -0,0 +1,13 @@
'use strict'
var mqtt = require('../..')
var client = mqtt.connect()
// or var client = mqtt.connect({ port: 1883, host: '192.168.1.100', keepalive: 10000});
client.subscribe('presence')
client.publish('presence', 'bin hier')
client.on('message', function (topic, message) {
console.log(message)
})
client.end()

7
node_modules/mqtt/examples/client/simple-publish.js generated vendored Normal file
View File

@ -0,0 +1,7 @@
'use strict'
var mqtt = require('../..')
var client = mqtt.connect()
client.publish('presence', 'hello!')
client.end()

View File

@ -0,0 +1,9 @@
'use strict'
var mqtt = require('../..')
var client = mqtt.connect()
client.subscribe('presence')
client.on('message', function (topic, message) {
console.log(message)
})