Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMS RI enable hardcoding #103

Open
LucasImark opened this issue Feb 21, 2019 · 0 comments
Open

SMS RI enable hardcoding #103

LucasImark opened this issue Feb 21, 2019 · 0 comments

Comments

@LucasImark
Copy link

Hi there,

Is there a way built in to the library to enable a RI pin pulse when receiving a SMS?
I try to hardcode the at command to enable the RI pin of the fona 808 to pulse when receiving a sms.

I write it like that:
fona.write("AT+CFGRI=1");

but I'm getting this error:
invalid conversion from 'const char*' to 'uint8_t {aka unsigned char}' [-fpermissive]

Here is the rest of my code:
`#include "Adafruit_FONA.h"

#define FONA_RST 4
#define FONA_KEY 8

char replybuffer[255];
char PIN[5]="9648";

HardwareSerial *fonaSerial = new HardwareSerial(2);

Adafruit_FONA fona = Adafruit_FONA(FONA_RST);

uint8_t readline(char *buff, uint8_t maxbuff, uint16_t timeout = 0);
uint8_t type;

void setup() {
// put your setup code here, to run once:
pinMode(FONA_KEY, OUTPUT);
digitalWrite(FONA_KEY, HIGH);

Serial.begin(115200);
delay(100);
fonaSerial->begin(115200);

fona.unlockSIM(PIN);

delay(1000);

fona.write("AT+CFGRI=1");//enable RI on SMS receipt
}
`

Board: ESP32
IDE: Arduino 1.8.5
Library version: 1.3.4

thanks for your help
The Iron Mechanic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant