waqasaps2 / gsm-shield-arduino

This library can be used with GSM shield
0 stars 0 forks source link

GSM-GPRS-GPS-Shield-GSMSHIELD. Example don't compile #111

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I downloaded the GSM-GPRS-GPS-Shield-GSMSHIELD zip file and extracted into 
Arduino folder, but the example .ino files won't compile.  For example in the 
"SMS" example, 

C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp: In constructor 'HWSerial::HWSerial()':
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp:5:6: error: 'Serial1' was not declared in this scope
      Serial1.begin(9600);
      ^
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp: In member function 'void HWSerial::end()':
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp:15:6: error: 'Serial1' was not declared in this scope
      Serial1.end();
      ^
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp: In member function 'virtual void HWSerial::begin(long int)':
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp:28:6: error: 'Serial1' was not declared in this scope
      Serial1.begin(baud_rate);
      ^
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp: In member function 'int HWSerial::peek()':
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp:33:13: error: 'Serial1' was not declared in this scope
      return Serial1.peek();
             ^
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp: In member function 'virtual size_t HWSerial::write(uint8_t)':
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp:38:13: error: 'Serial1' was not declared in this scope
      return Serial1.write(byte);
             ^
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp: In member function 'virtual int HWSerial::read()':
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp:43:13: error: 'Serial1' was not declared in this scope
      return Serial1.read();
             ^
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp: In member function 'virtual int HWSerial::available()':
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp:48:13: error: 'Serial1' was not declared in this scope
      return Serial1.available();
             ^
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp: In member function 'virtual void HWSerial::flush()':
C:\Users\Giorgy\Documents\Arduino\libraries\GSM-GPRS-GPS-Shield-GSMSHIELD\HWSeri
al.cpp:53:6: error: 'Serial1' was not declared in this scope
      Serial1.flush();
      ^
Error during compilation

I'm running UNO and so according to your instructions I commented out //#define 
MEGA in HWSerial.h, and //#define MEGA in GSM.h.   All the .h files are in the 
same directory as the .cpp file.

Thank you for your thoughts on this .  Im stumped.

Original issue reported on code.google.com by giorgia....@gmail.com on 23 Jun 2015 at 6:29