我正在使用nodejs mqtt客户端包(https://www.npmjs.com/package/mqtt#publish)。<em 浏览68提问于2019-09-25得票数 0 回答已采纳 1回答 nodejs mqtt收到第一条消息后立即向broker发送disconnect,应保持订阅状态 、 背景 我已经在我的覆盆子Pi上建立了一个蚊子mqtt经纪人。此外,我还有一个IoT设备(...
-name:Carporttype:custom#or defaultstatus:#charger status A..Fsource:mqtttopic:carport/lp/1/ChargeStatustimeout:10menabled:#charger enabled state (true/false or 0/1)source:mqtttopic:carport/lp/1/ChargePointEnabledtimeout:10menable:#set charger enabled state (true/false or 0/1)source:mqtttopic:...
-pv1-pv2-pv3tariffs:currency:EURgrid:type:fixedprice:0.22feedin:type:fixedprice:0.05#mqtt:#broker: 192.168.1.37:1882#topic: evcc Log details [shelly] TRACE 2024/08/24 11:09:56 {"id":0,"on":false,"src":"evcc","method":"Shelly.GetStatus"} -- {"ble":{},"cloud":{"connected":...
priority: 0 guardduration: 1m site: title: Heideweg 20 meters: grid: Strom pv: Balkonsolar tariffs: grid: type: tibber token: xxx co2: type: grünstromindex zip: xxx mqtt: broker: localhost:1883 topic: evcc # root topic for publishing, set empty to disable publishing user: MQTT ...
mosquitto_sub -h $MQTT_BROKER -p $MQTT_PORT -u $MQTT_USERNAME -P $MQTT_PASSWORD -t 'tesla-command/charger/#' -F '%t %p' | while read -r topic payload; do # echo "Received MQTT message: Topic is $topic, Payload is $payload" #debugging echo handle_message "$topic" "$payload"...