Skip to content

No matching function for call to 'Adafruit_FONA::Adafruit_FONA(SoftwareSerial*, int)' #10

@axcheron

Description

@axcheron

When ENABLE_GSM is defined, I get a No matching function for call to Adafruit_FONA::Adafruit_FONA(SoftwareSerial, int)'*

I was able to fix the problem by replacing:

SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
Adafruit_FONA fona = Adafruit_FONA(&fonaSS, FONA_RST);

[snip]

// See if the FONA is responding
  while (! fona.begin(4800)) {  // make it slow so its easy to read!

to

SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
SoftwareSerial *fonaSerial = &fonaSS;

Adafruit_FONA fona = Adafruit_FONA(FONA_RST);

[snip]

// See if the FONA is responding
  fonaSerial->begin(4800);
  while (! fona.begin(*fonaSerial)) {  // make it slow so its easy to read!

But I get Low memory available, stability problems may occur. (Issue #5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions