Skip to content

Commit

Permalink
Code refactored. Initialization fixed. Rename some folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio committed Dec 18, 2020
1 parent 3ff355f commit e981b86
Show file tree
Hide file tree
Showing 24 changed files with 1,023 additions and 322 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ typings/
# dotenv environment variables file
.env
secrets.h
config.js
config.*


# OS
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "none"
}
5 changes: 1 addition & 4 deletions HW/esp8266/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ upload_speed = 921600
monitor_speed = 115200

lib_deps =
# RECOMMENDED
# Accept new functionality in a backwards compatible manner and patches
adafruit/DHT sensor library @ ^1.4.0
arduino-libraries/NTPClient @ ^3.1.0
bblanchon/ArduinoJson
; FirebaseArduino=https://github.com/FirebaseExtended/firebase-arduino/archive/v0.3.zip
bblanchon/ArduinoJson @ 5.13.1
FirebaseArduino
2 changes: 1 addition & 1 deletion HW/esp8266/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "secrets.h"

const String SENSOR_ID = "hermes001";
const long INTERVAL = 60000; // miliseconds

WiFiUDP ntpUDP; // UDP client
NTPClient timeClient(ntpUDP); // NTP client
Expand Down Expand Up @@ -52,7 +53,6 @@ struct readings {
DHT dht(DHTPIN, DHTTYPE);

unsigned long previousMillis = 0;
const long INTERVAL = 60000;
// will store last time data was sent to Firebase
long unsigned int timestamp = 0;

Expand Down
Loading

0 comments on commit e981b86

Please sign in to comment.