I am using the GSMSHIELD library with an Arduino Mega and I am getting the following error on two different systems.
/Users/-----/Documents/Arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'int SIMCOM900::configandwait(char*)': /Users/-----/Documents/Arduino/libraries/GSMSHIELD/SIM900.cpp:62:18: error: 'class HWSerial' has no member named 'read' connCode=_cell.read();
I can trace this back through the GSM.h file:
#include "HWSerial.h"
...
HWSerial _cell;
and the Arduino HardwareSerial.h file:
public:
inline HardwareSerial(
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
volatile uint8_t *ucsrc, volatile uint8_t *udr);
void begin(unsigned long baud) { begin(baud, SERIAL_8N1); }
void begin(unsigned long, uint8_t);
void end();
virtual int available(void);
virtual int peek(void);
virtual int read(void);
<snip>
I can't for the life of me figure out why this won't compile, unless it's an Arduino development system version (1.6.9) issue...
I don't find any info on which versions of the IDE the library was written/tested on.
Any ideas?