石超 2025-06-22 15:55:10 +08:00
commit 2d3af5c7e2
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ const connection = {
connectTimeout: 30 * 1000, // ms connectTimeout: 30 * 1000, // ms
reconnectPeriod: 4000, // ms reconnectPeriod: 4000, // ms
// clientId: 'mqttx_' + Math.random().toString(16).substring(2, 8), // clientId: 'mqttx_' + Math.random().toString(16).substring(2, 8),
clientId: `mqtt_${Math.random().toString(16).slice(2)}`, clientId: 'mqtt_client_1581F8HGX254V00A0BUY',
// auth // auth
username: 'sdhc', username: 'sdhc',
password: '', password: '',