https://github.com/eadf/esp_mqtt_2004lcd
Display mqtt messages on a 20x4 LCD
https://github.com/eadf/esp_mqtt_2004lcd
Last synced: 28 days ago
JSON representation
Display mqtt messages on a 20x4 LCD
- Host: GitHub
- URL: https://github.com/eadf/esp_mqtt_2004lcd
- Owner: eadf
- License: gpl-3.0
- Created: 2015-02-01T14:47:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-28T18:21:13.000Z (over 11 years ago)
- Last Synced: 2025-03-02T18:19:32.015Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 1.53 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp_mqtt_2004lcd
Display mqtt messages on a 20x4 LCD.
I'm pulling in two git subtree projects : [tuanpmt's exellent mqtt project: esp_mqtt](https://github.com/tuanpmt/esp_mqtt) and my lcd project [ esp8266_digoleserial](https://github.com/eadf/esp8266_digoleserial) to build this project.
To use the LCD you will need an esp with GPIO2 available. Digoleserial uses UART1 so the GPIO2 pin is hardwired.
##Usage
To use this mqtt enabled LCD you can send text messages to these topics:
* /lcd0
* /lcd1
* /lcd2
* /lcd3
Representing each row of the display.
You can also send messages to a topic that is unique to each esp, look at the debug console for more info.
The makefile is copied from [esp_mqtt.](https://github.com/tuanpmt/esp_mqtt)
###Building and installing:
First you need to install the sdk and the easy way of doing that is to use [esp_open_sdk.](https://github.com/pfalcon/esp-open-sdk)
You can put that anywhere you like (/opt/local/esp-open-sdk, /esptools etc etc)
Then you could create a small ```setenv.sh``` file, containing the location of your newly compiled sdk and other platform specific info;
```
export SDK_BASE=/opt/local/esp-open-sdk/sdk
export PATH=${SDK_BASE}/../xtensa-lx106-elf/bin:${PATH}
export ESPPORT=/dev/ttyO0
```
(or setup your IDE to do the same)
You will have to edit the ```include/user_config.h``` file to suit your WiFi and mqtt settings. Alternatively you can copy ```include/user_config.h``` into ```localinclude/user_config.h``` and git will not bother you about modified files.
To make a clean build, flash and connect to the esp console you just do this in a shell:
```
source setenv.sh # This is only needed once per session
make clean && make test
```
You won't be needing esptool, the makefile only uses esptool.py (provided by [esp_open_sdk](https://github.com/pfalcon/esp-open-sdk))
I have tested this with sdk v0.9.5 and v0.9.4 (linux & mac)