"Generic - MQTT Import" problem
Posted: 12 Jun 2020, 16:47
I would like to transfer data from nodered over MQTT to my ESPeasy device.
I can not configure this.
I configured Controller, and I saw in mosquitto_sub how ESP sends data. "
Client mosqsub|11803-orange received PUBLISH (d0, q0, r1, m0, 'cellar/status/LWT', ... (9 bytes))
Connected
Client mosqsub|11803-orange received PUBLISH (d0, q0, r1, m0, 'cellar/out/LWT', ... (9 bytes))
"
My data that I want to receive in ESP is as follows:
"
Client mosqsub|11803-orange received PUBLISH (d0, q0, r0, m0, 'cellar/in', ... (59 bytes))
{"idx":10,"nvalue":31.19,"svalue1":"31.19","t3":31,"t4":19}
Client mosqsub|11803-orange received PUBLISH (d0, q0, r0, m0, 'cellar/in', ... (55 bytes))
{"idx":7,"nvalue":29.3,"svalue1":"29.3","t1":29,"t2":3}
"
I configured device in ESP. What mistakes have I made? I tried different options in Generic setup - MQTT Import, but I did not receive the data. Maybe MQTT is not working correctly in my firmware version? But, I can not use another version because of the PZEM-004 device.
I can not configure this.
I configured Controller, and I saw in mosquitto_sub how ESP sends data. "
Client mosqsub|11803-orange received PUBLISH (d0, q0, r1, m0, 'cellar/status/LWT', ... (9 bytes))
Connected
Client mosqsub|11803-orange received PUBLISH (d0, q0, r1, m0, 'cellar/out/LWT', ... (9 bytes))
"
My data that I want to receive in ESP is as follows:
"
Client mosqsub|11803-orange received PUBLISH (d0, q0, r0, m0, 'cellar/in', ... (59 bytes))
{"idx":10,"nvalue":31.19,"svalue1":"31.19","t3":31,"t4":19}
Client mosqsub|11803-orange received PUBLISH (d0, q0, r0, m0, 'cellar/in', ... (55 bytes))
{"idx":7,"nvalue":29.3,"svalue1":"29.3","t1":29,"t2":3}
"
I configured device in ESP. What mistakes have I made? I tried different options in Generic setup - MQTT Import, but I did not receive the data. Maybe MQTT is not working correctly in my firmware version? But, I can not use another version because of the PZEM-004 device.