Rewrite whole project as a Arduino IDE project

The lua flashing never really worked and I had so many problems
flashing the hardware. The Arduino IDE does it much better so this
is now written in thes Arduino language which looks like C++.

Still need to explain the hardware setup.
This commit is contained in:
Jeena 2018-02-14 19:57:31 +01:00
parent 4dc9e79f28
commit b61dddea01
11 changed files with 162 additions and 242 deletions

View file

@ -5,26 +5,28 @@ This is my first stab at a wireless termometer.
## Getting the code
git clone https://github.com/jeena/esp8266-temperature.git
cd esp8266-temperature
git submodule init
git submodule update
## Setup
It expects a credentials.lua file with content like this:
Open the esptmp.ino file in the Arduino IDE.
SSID = "myssid"
PASSWORD = "mypasswd"
It expects the credentials for your WiFi in the file like this:
Copy the credentials.lua.example file into credentials.lua and change
it so et matches your wifi credentials.
const char* ssid = "myssid";
const char* password = "mypass";
Change the credentials in esptmp.ino so it matches your wifi credentials.
## Flashing
To put the code onto the ESP8266 you need the luatool which is
included as a git submodule.
1. Under File -> Preferences set as Additional Boards Manager URLs:
http://arduino.esp8266.com/versions/2.3.0/package_esp8266com_index.json
2. Chose under Tools -> Board the "Node MCU 1.0 (ESP12-E Module)"
3. Press the Upload button
Use flash.sh to flash it via /dev/ttyUSB0
## Hardware Setup
t.b.d.
## License
@ -36,4 +38,4 @@ esp8266-temperature is free software: you can redistribute it and/or modify it u
esp8266-temperature is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with esp8266-temperature. If not, see http://www.gnu.org/licenses/.
You should have received a copy of the GNU General Public License along with esp8266-temperature. If not, see http://www.gnu.org/licenses/.