Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
319 commits
Select commit Hold shift + click to select a range
a09e049
Changed version to 128
Jun 10, 2023
d818bd3
(129) No fallback to wifi if ethernet is connected
Jul 21, 2023
e716a65
Version 130: Added support for feature flag
Aug 3, 2023
622a337
Fixt compile errors for Raspberry Pi
opensprinklershop Aug 25, 2023
96d28c8
Merge remote-tracking branch 'upstream/master'
opensprinklershop Aug 25, 2023
fae1bb0
Fixt merge bug
Aug 25, 2023
061d9c0
Added analog sensor api support for OSPi with PCF8591
opensprinklershop Sep 1, 2023
b85a7c5
Small fixes for weather and ping check
Sep 1, 2023
fb9a1f8
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Sep 1, 2023
cf27aa3
Fixed compile errors
Sep 1, 2023
4fdf3e5
Memory Leak Fix
Oct 3, 2023
3b4878b
iospi: analog sensor api: Added missing close
opensprinklershop Oct 8, 2023
eef35c4
Added user defined sensor with factor and free unit
Nov 12, 2023
85dfc12
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Nov 12, 2023
1c211cc
Update API Doc
Nov 12, 2023
4fe734d
Bugfix: Add first sensor
Nov 21, 2023
8f5463f
- Added better eth detection on startup, fixt fix ip issue (disabled …
Jan 30, 2024
76356f7
Modus RTU: Implemented read Modbus RTU TCP protocoll
Feb 4, 2024
82c4950
Changed defaults
Feb 5, 2024
f9cc278
OSPi compatibility for last changes
Feb 7, 2024
1eaf316
WIFI Off when Ethernet is connected, Analog Sensors read 7x and use a…
Feb 7, 2024
f680c82
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Feb 7, 2024
b6acdac
Added offset2 1/100 for user defined sensors, added se&sensor=<nr> op…
Feb 11, 2024
db38717
Fix program adjustment "none" changed, because type=0 means deleting,…
Feb 12, 2024
ad4ea12
added Min&Max adjustment
Feb 13, 2024
7f0c1d7
analog sensor log: max parameter limits to the last x (instead first …
Feb 17, 2024
696592a
Fixt analog sensor log download limits (max), changed debugoutput
Feb 18, 2024
1e83566
added https station support
opensprinklershop Feb 25, 2024
6c75132
Updated Version to 140
Feb 25, 2024
115c234
fixt compile error, added calculation-check (min 0, max = 20) for pro…
Feb 25, 2024
588f6d6
added missing https method
Feb 25, 2024
039ecec
- Fixed OSPi compile : Added OpenSSL 3 compatibility, build script
Mar 9, 2024
b93d082
MQTT Subscribe sensor for LoRa+NB-IOT Sensors
Mar 12, 2024
218d05c
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Mar 12, 2024
e3d3492
added unitid for userdef+mqtt sensors, added sensor list+edit command…
Mar 12, 2024
2ad7ed8
mqtt resubscribe every intervall
Mar 15, 2024
4821f6e
Backup+Restore, mqtt resubscribe. Version now 2.3.1(150)
Mar 17, 2024
9531378
OSPi Sensor Update für ADS1115 / PCF8591 (uncomplete)
Mar 17, 2024
1adb096
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Mar 17, 2024
d7cb84f
OSPI ads1115+pcf8591 sensor addons
Mar 17, 2024
6b2d042
raspi/esp defines
Mar 17, 2024
887e4f2
ospi ads1115 cleanup
Mar 17, 2024
52bd923
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Mar 17, 2024
f152d9a
fixt ospi encoding, ip change
Mar 18, 2024
e1c00ef
fix remote sensor
Mar 18, 2024
cccfc26
added network diagnostik
Mar 19, 2024
1cf933d
added new gpio lib. thx to Jason Alonso
Mar 20, 2024
77899d3
analog sensor: repeat read (x7) and calculating avg
Mar 20, 2024
5a2f36c
repeat read more precision
Mar 20, 2024
ff171c0
correction sensor store size
Mar 20, 2024
308c0c0
fixt init
Mar 20, 2024
39297d6
Updated mqtt callback init
Mar 21, 2024
3c24534
fixt mqtt crash
Mar 21, 2024
f682578
fix build script for ospi
Mar 21, 2024
cbcfc9b
updated ignore file
Mar 21, 2024
3a1955c
Cleanup+buildscript adjusted
Mar 21, 2024
f2123ca
fixt OSPI mqtt - wrong clientid, added reconnect()
Mar 22, 2024
f50a5a6
fixt compatibility
Mar 22, 2024
d210b97
api status du with mqtt status
Mar 26, 2024
3799138
added ifttt status to diag
Mar 28, 2024
8ed63bc
Fixt typo
Mar 29, 2024
344b2d8
fixt ospi status
Mar 29, 2024
ea13c8e
Program adjustments calulations
Mar 31, 2024
e9059e8
Fixt dupIdent for ospi
Mar 31, 2024
d91c263
Fix calculating
Mar 31, 2024
3c05554
Fix analog sensor API sd for OSPi
Apr 1, 2024
d93e695
Version 2.3.1(151) Added Support for 3.2 W5500 with adapter
Apr 5, 2024
028e5aa
ADC1115 optimization, log delete per sensor
Apr 8, 2024
182e5e9
Better detection of ENC28J60/W5500
Apr 10, 2024
c42cbc2
fixt memory leak, added offline sensor reading
Apr 12, 2024
38f399c
- Support for max 4x ADS1115 (OSPi) 0x48 / 0x49 / 0x4A / 0x4B
Apr 12, 2024
3f93d06
Added Support for further ESP-ADS1115 addresses
Apr 13, 2024
4d555ee
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Apr 13, 2024
d329602
Added Analog Sensorboard Input Filter
Apr 17, 2024
70a8c96
Change last time information for remote sensors
Apr 17, 2024
2371e08
fixt remote sensor
Apr 17, 2024
acc8ef1
Check mqtt result value, check remote sensor value, ignore dups
Apr 21, 2024
ce0e3ec
added errno for esp (fix compile error)
Apr 21, 2024
b3e8b54
mqtt drop dupplicate mqtt values
Apr 21, 2024
f76358c
Added log delete over/under value, fix mqtt/http parsing error handling
Apr 22, 2024
2243d42
Mqtt asynchron handling
Apr 24, 2024
6e73e00
Mqtt asynchron handling
Apr 26, 2024
b91c606
Another MQTT fix
Apr 26, 2024
8ea470d
added MQTT null value and range (-1000/1000) filter
May 3, 2024
9f80de8
Saving sensors every 1h for keeping last value
May 3, 2024
ac766c1
Added OTF-Support for OSPi
May 9, 2024
05a16df
MQTT Host extended to 100 chars, Username 50 chars, Password 100 chars
May 9, 2024
935f9ea
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
May 9, 2024
e5be085
Merged OTFPi Framework changes for OTC-OSPi
May 9, 2024
14bf245
Fix Compile Error OSPi (DEBUG_PRINTF on deactivated debug)
May 10, 2024
7942279
Another compile Error fix OSPi
May 10, 2024
8fca11a
Fixt compile warning (mqtt.cpp / OSPi)
May 10, 2024
c1d6612
Fixt Buffer overflow
May 11, 2024
927fb91
Added ADS1115 check
opensprinklershop May 13, 2024
5fd0387
MQTT password length 100 char
May 14, 2024
d8c8cdc
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
May 14, 2024
985df14
addes read+write timeouts for otfpi
opensprinklershop May 22, 2024
76875e8
Fixt rain delay date
Jun 3, 2024
5b547dc
Rain delay compile fix for non-OSPI
Jun 3, 2024
30523b7
OSPi BugFix memory free/delete
Jun 7, 2024
4daa617
OSPi Bugfix Memory free/delete
Jun 7, 2024
5c99958
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Jun 7, 2024
e1ce4de
try-fix Zone Expander Latch
Jun 12, 2024
6ed77b2
Updated start script - systemd compatible
Jun 16, 2024
614613d
startscript for systemd, added timeout handling
opensprinklershop Jun 16, 2024
bd495e1
Fixed restart after updater
opensprinklershop Jun 16, 2024
6ea9ffd
changed timeout and error handing for remote sensors
opensprinklershop Jun 18, 2024
fd2c649
changed timeout and error handing for remote sensors
opensprinklershop Jun 18, 2024
3107029
Fixt OSPi boot script
Jun 20, 2024
d186c7f
Fixed a buffer problem OSPi
Jun 20, 2024
ed76499
fixt OpenThingsFramework incoming local Server requests
Jun 21, 2024
d5880ca
fixt https
Jun 22, 2024
e6fd105
disabled debug
Jun 22, 2024
d21e478
Detecting analog sensor board
Jun 30, 2024
7cfaa9e
added OSPi compatibility for sensor detect
Jun 30, 2024
d93eca3
added board detection (see sf+sl command)
Jul 6, 2024
7fc0b53
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Jul 6, 2024
f304350
added rs485 truebner interface support, added SMT100 permittivity mode
Jul 20, 2024
9596e7d
Fixt compile error on ospi
Jul 20, 2024
d5a7a43
Fixt Log-rotate switching
Jul 21, 2024
88735e4
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Jul 21, 2024
0a7517c
completed final truebner rs485 protocol
Jul 22, 2024
804ea7b
rs485 minor changes for multiple devices
Jul 23, 2024
8fe13ef
Changed /sd for program adjustment calculation
Jul 23, 2024
0112509
added /du log size for diagnostics
Jul 24, 2024
8f14686
program calc (/sd): added current and adjustment for current
Jul 24, 2024
4f8ffae
OSPi: fix nullpointer-free bug
Jul 28, 2024
eb6f0d0
OSPi: flow meter optimization: Ethernet wait time reduced
Aug 6, 2024
23f2c0a
Added support for multiple truebner rs485 interfaces
Aug 6, 2024
90e3484
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Aug 17, 2024
5259645
Fixt analog Sensor Api for next gen
Aug 17, 2024
2184a02
Updated OSPi for the new OpenThingsFramework
Aug 18, 2024
3a2eb73
Renamed internal i2c to rs485 sensor name
Aug 18, 2024
908f697
Fixt remote sensor reading
Aug 18, 2024
3970b24
Fixt OSPI ADS1115 detection
Aug 18, 2024
ed7d985
fixt new mqtt topic assignment, using mqtt publish options
Aug 18, 2024
76ede91
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Aug 18, 2024
7b54cb8
Added SOPTS converting
Aug 19, 2024
a1cb3c6
Optimized some debug output
Aug 19, 2024
ecc9f38
Fixt memoryleak and email send
Aug 21, 2024
d0f800c
Added "Free Memory" and "Free Storage" diagnostic sensors
Aug 22, 2024
328cc42
Free Memory Sensor - save only changed values
Aug 25, 2024
6712b2e
api-reinit without sensor detection to avoid blocking
Aug 28, 2024
0a7c2cb
Fixt reboot after sendmail
Aug 30, 2024
8adf649
added OSPi warning about configuration loss
Aug 30, 2024
b0c4913
bugfix: analog sensor delete could crash
Aug 31, 2024
55a0ccc
Memleak: sending mail fix / https fix
Sep 1, 2024
ac42c50
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Sep 1, 2024
7dfe99c
Disable Debug
Sep 1, 2024
c9964b7
Fixt debug output
Sep 3, 2024
5c71886
Updated OSPi Build script
Sep 12, 2024
4f9f878
Merge remote-tracking branch 'origin/master' into dev/221_1
Sep 12, 2024
38bb777
Merge remote-tracking branch 'origin/master' into dev/221_1
Sep 12, 2024
e702c75
Merge remote-tracking branch 'origin/master' into dev/221_1
Sep 12, 2024
a804d72
fixt urlencode problem with "%20" commands
Sep 12, 2024
f7986e2
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Sep 12, 2024
d771353
Added support for influxdb (api ig/is)
Sep 15, 2024
5a07cc3
Added support for influxdb (api ig/is)
Sep 15, 2024
a58c96a
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
opensprinklershop Sep 18, 2024
e6dc9e9
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Sep 18, 2024
cc1f604
added influxdb - support for raspi
Sep 18, 2024
aff7378
Added influxdb support for raspi
Sep 18, 2024
b363751
Prepared webservice for APP
Sep 19, 2024
37066d8
changed enabled to en
Sep 19, 2024
88cae95
enhancing influx support
Sep 20, 2024
d5b6d22
fixt file
Sep 20, 2024
4e89c47
fixt gitignore
Sep 20, 2024
487787f
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Sep 20, 2024
a5cdf6b
Merge branch 'dev/221_1'
Sep 20, 2024
092a27f
completed influxdb setup
Sep 20, 2024
5dc53fb
fixt typi
Sep 20, 2024
a588994
removed debug output
Sep 20, 2024
d431330
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Sep 20, 2024
a2a6379
Fixt esp8266 influxdb loading
Sep 20, 2024
238dec4
Fixt influxdb loading
Sep 20, 2024
cf8de89
Added "Flow Alert" notification
Sep 21, 2024
618722f
fixt crash on invalid influxdb config
Sep 22, 2024
3bbd9e3
Updated build scripts
Sep 22, 2024
a5ff2af
Fixt Trueber RS485 board with Offset dip position
Sep 23, 2024
9d79c9a
Re-added support for older 5.10 kernel gpio
Sep 23, 2024
9b5c51c
Fixt Userdef Sensor: selecting a concrete unit
Sep 23, 2024
4d13090
Fixt OSPi build script
Sep 23, 2024
838d03b
Another Build script fix OSPi
Sep 23, 2024
5b45bf3
Antoher Build script fix
Sep 23, 2024
c9334b6
fixt crash when not using influxdb
Sep 24, 2024
1ead927
fixt typo
Sep 24, 2024
c00ef80
added option for deleting sensor log data
Oct 4, 2024
fefdecb
Merge branch 'flow_alerts'
Oct 4, 2024
9791927
Fixt broken influxdb config file
Oct 4, 2024
d5baa7d
added more influxdb : added full set of notifications
Oct 5, 2024
4d438d6
fixt type+typo for ospi
Oct 6, 2024
81c165e
Updated Sensor API.txt
Oct 7, 2024
135e9f3
Added OSPi Support for RS485 Modbus USB Adapter
Oct 13, 2024
7a6d113
Typo fixes
Oct 13, 2024
02189b4
More typo fixes
Oct 13, 2024
aa08dfd
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Oct 13, 2024
2836500
Fixt build script for first setup
Oct 17, 2024
98bca71
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Oct 17, 2024
9f60084
fixt email sending when influxdb is active (empty email)
Oct 18, 2024
28d46c2
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Oct 18, 2024
879a6c7
New Feature: Monitoring and control
Oct 20, 2024
58fe82d
rs485 ospi detect
Oct 20, 2024
8c01fd6
Fix manual changes does not trigger monitor and control
Oct 20, 2024
9ef92c7
fixt detect OSPi Rs485 Adapters
Oct 20, 2024
0b53d4b
added priority and notifications for monitoring and controlling
Oct 22, 2024
4caf611
fixt influxdb + email active at once
Oct 23, 2024
ca44a20
fixt warnings via MQTT
Oct 23, 2024
b862c5d
Fixt length check of monitor name
Oct 23, 2024
935e65d
Optimized Flow Alert, calculating avg values. Station now with editor…
Nov 3, 2024
1d6baae
Fix: Do load load invalid monitor data
Nov 3, 2024
54a7e1f
Bug Fix "decade"
Nov 12, 2024
23ee9be
Fix timed program start, fix broken mqtt+influx db
Nov 15, 2024
0579bcf
Version 2.3.3(171)
Nov 15, 2024
7c91d56
Monitor and Control added AND, OR, XOR, NOT and (digital SN1/2) Rain-…
Dec 27, 2024
c012311
Added Remote Monitor
Jan 5, 2025
f758da0
added Truebner TH100 + Raspberry Pi Temp support
Jan 10, 2025
afa1e57
fixt Raspi temperature readout
Jan 10, 2025
0056802
fix log raspi internal temp
Jan 10, 2025
7604b13
Fix TH100 read from rs485
Jan 11, 2025
3f19f00
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Jan 11, 2025
99a2c1b
Fix MQTT empty filter
Jan 12, 2025
6cc6b06
Firmware version 173
Jan 12, 2025
ba680b5
Fix MQTT (OSPi)
Jan 12, 2025
d84008f
Fix Typo
Jan 12, 2025
d47c2d1
Fix empty url/topic/filter
Jan 12, 2025
a35960a
Log filter same data / do not write same data
Jan 27, 2025
b59b9ce
Cleanup unused values
Jan 27, 2025
feb0f49
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Jan 27, 2025
0b5b1b1
Set Digital Sensorport control
Jan 27, 2025
ce2d997
OSPi bugfix rs485 SMT100 read
Jan 28, 2025
8b7235e
Bugfix OSPi rs485 SMT100
Jan 28, 2025
b39ccef
build2.sh compile for OS VERSION_ID>10
opensprinklershop Jan 28, 2025
c908eba
Lumen/Lux added
Feb 15, 2025
ac01492
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Feb 15, 2025
4cf54b0
fixt FlowPulseRateFactor. Thx to Ray!
Feb 23, 2025
0aaa34e
1. Fix ADS1115 too many open files 2. Fix MQTT Subscribe fix
Mar 25, 2025
9ce2726
new Version 175, influxdb always active, new monitor-type: Time
Apr 3, 2025
f0c3e06
Merge branch 'master' of https://github.com/opensprinklershop/openspr…
Apr 3, 2025
6961792
fixed OSPi error
opensprinklershop Apr 3, 2025
3b9089e
Merge branch 'master' of https://github.com/OpenSprinkler/OpenSprinkl…
Apr 6, 2025
702b416
Merge branch 'master' of https://github.com/opensprinklershop/OpenSpr…
Apr 6, 2025
70bbf0e
Fixt compile error
Apr 19, 2025
87aa2ff
W5500 + ENC28J60 now running with max speed, fixed mqtt buffer overre…
Jun 1, 2025
28999be
W5500 80MHZ
Jun 3, 2025
45faf4a
Merge pull request #340 from opensprinklershop/master
arfrie22 Jun 25, 2025
f24829e
fix build script
arfrie22 Jun 25, 2025
eb9cc50
fix influxdb import
arfrie22 Jun 25, 2025
c3e8bc7
update makefile
arfrie22 Jun 25, 2025
d75a01c
fix pinger.h capitalization
arfrie22 Jun 25, 2025
456018e
update build files
arfrie22 Jun 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ logs/**
OpenSprinkler
wtopts.txt
*.dat
*.sh
*.bak
testmode.h
build-1284/*
.vscode
.pio
influx.json
*~
*.o
!build.sh
!startOpenSprinkler.sh
!updater.sh
!updater.sh
DEADJOE
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "external/TinyWebsockets"]
path = external/TinyWebsockets
url = https://github.com/gilmaimon/TinyWebsockets.git
[submodule "external/influxdb-cpp"]
path = external/influxdb-cpp
url = https://github.com/orca-zhang/influxdb-cpp.git
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG BUILD_VERSION="OSPI"
FROM base AS os-build

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y bash g++ make libmosquittopp-dev libssl-dev libi2c-dev libgpiod-dev libgpiod2 gpiod
RUN apt-get update && apt-get install -y bash g++ make libmosquittopp-dev libssl-dev libi2c-dev
RUN rm -rf /var/lib/apt/lists/*
COPY . /OpenSprinkler
WORKDIR /OpenSprinkler
Expand All @@ -19,7 +19,7 @@ RUN make VERSION=${BUILD_VERSION}
FROM base

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y libstdc++6 libmosquittopp1 libi2c0 libgpiod2
RUN apt-get update && apt-get install -y libstdc++6 libmosquittopp1 libi2c0
RUN rm -rf /var/lib/apt/lists/*
RUN mkdir /OpenSprinkler
RUN mkdir -p /data/logs
Expand Down
13 changes: 8 additions & 5 deletions EMailSender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ EMailSender::Response EMailSender::awaitSMTPResponse(EMAIL_NETWORK_CLASS &client
EMailSender::Response response;
uint32_t ts = millis();
while (!client.available()) {
wdt_reset();
if (millis() > (ts + timeOut)) {
response.code = F("1");
response.desc = String(respDesc) + "! " + F("SMTP Response TIMEOUT!");
Expand Down Expand Up @@ -432,7 +433,7 @@ EMailSender::Response EMailSender::send(const char* to, EMailMessage &email, Att
EMAIL_DEBUG_PRINT(F("ONLY ONE RECIPIENT"));

const char* arrEmail[] = {to};
return send(arrEmail, 1, email, attachments);
return send(arrEmail, 1, 0, 0, email, attachments);
}

EMailSender::Response EMailSender::send(const char* to[], byte sizeOfTo, EMailMessage &email, Attachments attachments) {
Expand Down Expand Up @@ -476,16 +477,17 @@ EMailSender::Response EMailSender::send(const char* to[], byte sizeOfTo, byte s
#ifndef ARDUINO_ESP8266_RELEASE_2_4_2
if (this->isSecure == false){
client.setInsecure();
/*
bool mfln = client.probeMaxFragmentLength(this->smtp_server, this->smtp_port, 512);

EMAIL_DEBUG_PRINT("MFLN supported: ");
EMAIL_DEBUG_PRINTLN(mfln?"yes":"no");

if (mfln) {
if (mfln) {*/
client.setBufferSizes(512, 512);
} else {
/*} else {
client.setBufferSizes(2048, 2048);
}
}*/
}
#endif
#elif (EMAIL_NETWORK_TYPE == NETWORK_ESP32)
Expand Down Expand Up @@ -629,7 +631,8 @@ EMailSender::Response EMailSender::send(const char* to[], byte sizeOfTo, byte s
// String auth = "AUTH PLAIN "+String(encode64(logPass));
EMAIL_DEBUG_PRINTLN(auth);
client.println(auth);
}
free(logPass);
}
#if defined(ESP32)
else if (this->isCramMD5Login == true) {
EMAIL_DEBUG_PRINTLN(F("AUTH CRAM-MD5"));
Expand Down
4 changes: 2 additions & 2 deletions EMailSenderKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
// #define FORCE_DISABLE_SSL

// If you want add a wrapper to emulate SSL over Client like EthernetClient
// #define SSLCLIENT_WRAPPER
//#define SSLCLIENT_WRAPPER

// esp8266 microcontrollers configuration
#ifndef DEFAULT_EMAIL_NETWORK_TYPE_ESP8266
Expand Down Expand Up @@ -136,7 +136,7 @@
* For enc28j60 use EthernetENC available from library manager or
* https://github.com/jandrassy/EthernetENC
*/
#define ANALOG_PIN A7
#define ANALOG_PIN -1
#include <SSLClient.h>
#include "trust_anchors.h"

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CXX=g++
# -std=gnu++17
VERSION?=OSPI
CXXFLAGS=-std=gnu++14 -D$(VERSION) -DSMTP_OPENSSL -Wall -include string.h -include cstdint -Iexternal/TinyWebsockets/tiny_websockets_lib/include -Iexternal/OpenThings-Framework-Firmware-Library/
VERSION=OSPI
CXXFLAGS=-std=gnu++14 -D$(VERSION) -DSMTP_OPENSSL -Wall -include string.h -Iexternal/TinyWebsockets/tiny_websockets_lib/include -Iexternal/OpenThings-Framework-Firmware-Library/ -Iexternal/influxdb-cpp/
LD=$(CXX)
LIBS=pthread mosquitto ssl crypto i2c gpiod
LIBS=pthread mosquitto ssl crypto i2c
LDFLAGS=$(addprefix -l,$(LIBS))
BINARY=OpenSprinkler
SOURCES=main.cpp OpenSprinkler.cpp notifier.cpp program.cpp opensprinkler_server.cpp utils.cpp weather.cpp gpio.cpp mqtt.cpp smtp.c RCSwitch.cpp $(wildcard external/TinyWebsockets/tiny_websockets_lib/src/*.cpp) $(wildcard external/OpenThings-Framework-Firmware-Library/*.cpp)
SOURCES=main.cpp OpenSprinkler.cpp program.cpp opensprinkler_server.cpp utils.cpp weather.cpp gpio.cpp mqtt.cpp smtp.c RCSwitch.cpp sensors.cpp osinfluxdb.cpp $(wildcard external/TinyWebsockets/tiny_websockets_lib/src/*.cpp) $(wildcard external/OpenThings-Framework-Firmware-Library/*.cpp)
HEADERS=$(wildcard *.h) $(wildcard *.hpp)
OBJECTS=$(addsuffix .o,$(basename $(SOURCES)))

Expand Down
Loading
Loading