Skip to content

Commit

Permalink
fetch ota updates from github
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsullivan committed Mar 15, 2024
1 parent e06b63f commit 04fb80f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions noisemeter-device/noisemeter-device.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ static Storage Creds;
// Uncomment these to disable WiFi and/or data upload
//#define UPLOAD_DISABLED

constexpr auto UpdateEndpoint = "https://www.bitgloo.com/files/noisemeter-update.bin";
constexpr auto VersionEndpoint = "https://www.bitgloo.com/files/noisemeter-update.txt";
constexpr auto VersionNumber = "v0.2";
#define OTA_ROOT_URL "https://github.com/CivicTechTO/proj-noisemeter-device/releases/latest/download"
constexpr auto UpdateEndpoint = OTA_ROOT_URL "/firmware.bin";
constexpr auto VersionEndpoint = OTA_ROOT_URL "/version.txt";
constexpr auto VersionNumber = "0.0.1"; // semantic versioning

const unsigned long UPLOAD_INTERVAL_SEC = 60 * 5; // Upload every 5 mins
// const unsigned long UPLOAD_INTERVAL_SEC = 30; // Upload every 30 secs
Expand Down
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ default_envs = esp32-pcb
[env]
framework = arduino
platform = espressif32@6.1.0
board_build.partitions = default.csv
lib_deps =
bblanchon/ArduinoJson@^7.0.2
bakercp/CRC32@^2.0.0
Expand Down

0 comments on commit 04fb80f

Please sign in to comment.