Hi,
I have an Arduino Uno Project, where I am monitoring smoke detectors and send an email on an alarm.
In addition to that I have implemented a webserver to query the status, but also to suspend alarms.
This sketch was running fine for 3 years now, but I had to change the IP Adress of the Arduino.
I just changed the IPs of the Arduino, the Gateway and the SMTP Server and uploaded again.
Before doing that I had to install the new IDE, because I changed my PC in the meantime.
Everything works fine, but I am only getting a blank page when accessing the Webserver.
This is attached.
Here are the warnings I am getting:
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino: In function 'void loop()':
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino:105:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (StrContains(HTTP_req, "ajax_inputs")) {
^
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino: In function 'void SetLEDs()':
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino:216:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (StrContains(HTTP_req, "LED4=1")) {
^
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino:221:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (StrContains(HTTP_req, "LED3=1")) {
^
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino:226:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (StrContains(HTTP_req, "LED1=1")) {
^
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino:231:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (StrContains(HTTP_req, "LED1=0")) {
^
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino:236:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (StrContains(HTTP_req, "LED2=1")) {
^
C:\UserData\ebnerjoh\Nextcloud\Privat\Arduino\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2\Rauchmelder_with_Ethernet_and_Email_SMS_LAN_V2.ino:241:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (StrContains(HTTP_req, "LED2=0")) {
^
Sketch uses 21478 bytes (66%) of program storage space. Maximum is 32256 bytes.
Global variables use 1785 bytes (87%) of dynamic memory, leaving 263 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.
Best Regards,
Johannes
sketch.txt (13.1 KB)