|
|
@@ -43,7 +43,7 @@ export default class MqttService {
|
|
|
* @returns
|
|
|
*/
|
|
|
async send(params: string, qos = 0) {
|
|
|
- console.log('发送', this.client_channel, this.mqtt_id)
|
|
|
+ console.log('发送', this.client_channel, this.mqtt_id, params)
|
|
|
if (!this.client_channel || !this.mqtt_id) return null
|
|
|
return await publish(this.mqtt_id, this.client_channel, qos, false, params)
|
|
|
}
|