Ranur
I had this working a few weeks ago.
an extract from my notes ...
Can send over MQTT by using
Publish - ESP/cmd with payload/message - LCD,Lin,Row,”text” or value
where ESP is the NodeMCU device name
Tested by sending from MQTT app on my pc.
Can also publish using Node-Red flow
- Config ESP controller to publish data to local or public broker as vessels/self/%tskname%/%valname%
e.g BoatyMcboatface/electrical/batteries/house/voltage
- Use MQTT In Node to input data from broker
Set Topic to BoatyMcboatface/electrical/batteries/house/voltage
- Wire MQTT In node to Function node
Function node Properties
msg.payload = "LCD,2,1,WiFi..." + msg.payload;
return msg;
- MQTT Out Node with topic set as ESP Device name/cmd
I plan to fit the LCD2004 to display my tank sensor values
Fuel, Fresh and Black - read by ADS1115/ESP8266
Steve