Hope this is the right subforum...
I have a PC program wich can send out alarms as sms over an dial up modem. Since this is not installed anymore in modern pc`s my tought was to use an arduino or esp to recieve the alarm over internet.
If only i can get the message in the arduino i will plan further on how to do that (convert the pdu and send to domoticz maybe)
This is the settings page of the pc program:
I think i need to get the right AT commands to get the message via serial in arduino. I tried with an lcd to visualize the incomming message with the following test program, but get no result. Any help is very apprieciated
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address
const int wacht = 20;
char incom = 0;
void setup()
{
lcd.begin(20, 4); // initialize the lcd for 20 chars 4 lines and turn on backlight
Serial.begin (9600);
//lcd BL aanzetten
lcd.backlight();
}
void loop()
{
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
incom = Serial.read();
// display each character to the LCD
lcd.print(incom);
}
}
// lcd.setCursor(0, 4);
// lcd.print("%");
}