mlinaje/gsm-shield-arduino

Verify error when MEGA is selected

Closed this issue · 6 comments

Hi!

Can you help?

I'm trying to compile GSM_GPRSLibrary_SMS example for Mega2560 but when I 
comment UNO and decomment MEGA on GSM.h and HWSerial.h, I get a compiling error.

What steps will reproduce the problem?
1. When I select MEGA instead of UNO I get a compiling error.


Error reported:
SIM900.cpp: In member function 'boolean SIMCOM900::readSMS(char*, int, char*, 
int)':
SIM900.cpp:142: error: '_tf' was not declared in this scope


What version of the product are you using? On what operating system?
Arduino 1.01
GSM GPRS GPS Shield, SIM908 & SIM900, IDE 1.00, Version 3.03

Thanks,
Best Regards,
Francisco Lopes


Original issue reported on code.google.com by fplope...@gmail.com on 28 Oct 2012 at 2:43

Hello

I have the same problem. It is caused, by GSM.h in line 201 where _tf is only 
created when UNO is definde:
    #ifdef UNO
        WideTextFinder _tf;
    #endif

But I am still wondering why GSM.cpp is using the "_cell" command where "_tf" 
is needed...


Original comment by felixgro...@gmail.com on 30 Oct 2012 at 8:17

Hi
Me too. It doesn't compile when MEGA is uncommented and UNO is commented.
As described in the instruction.

Im using
arduino Mega rev3
GPRS/GSM Shield -EFCom (ver1.2)
Arduino IDE 1.0.1




Original comment by au...@dragons.li on 30 Oct 2012 at 3:42

Anyone can help us?

Anyone has a library that uses a hardware COM port from Arduino MEGA?

Please email me...

Best Regards,
Francisco Lopes

Original comment by fplope...@gmail.com on 1 Nov 2012 at 9:37

Solved, check the new file SIM900.cpp on 
http://code.google.com/p/gsm-shield-arduino/source/browse/branches/GSMSHIELD/SIM
900.cpp

substitute it and Arduino should compile the sketch.

BTW i'm going to upload a new version

Original comment by martines...@gmail.com on 12 Nov 2012 at 11:03

Original comment by martines...@gmail.com on 11 Dec 2012 at 5:01

  • Changed state: Done
This issue section is not longer supported.
Please check the support page www.gsmlib.org 

Original comment by martines...@gmail.com on 6 Jul 2013 at 11:27

  • Changed state: Fixed