Pages: [1]   Go Down
Author Topic: serialGSM error in program  (Read 657 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i try to run send sms program in arduino 1.5.2 simulator it get error.
like

sketch_mar08d.ino:3:10: error: #include expects "FILENAME" or <FILENAME>
sketch_mar08d:4: error: 'SerialGSM' does not name a type
sketch_mar08d.ino: In function 'void setup()':
sketch_mar08d:9: error: 'cell' was not declared in this scope
sketch_mar08d.ino: In function 'void sendSMS()':
sketch_mar08d:14: error: 'cell' was not declared in this scope
sketch_mar08d.ino:3:10: error: #include expects "FILENAME" or <FILENAME>
sketch_mar08d:4: error: 'SerialGSM' does not name a type
sketch_mar08d.ino: In function 'void setup()':
sketch_mar08d:9: error: 'cell' was not declared in this scope
sketch_mar08d.ino: In function 'void sendSMS()':
sketch_mar08d:14: error: 'cell' was not declared in this scope


and also attach program sample.

* gsmmessage.ino (0.47 KB - downloaded 12 times.)
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 285
Posts: 25630
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I didn't know there was a simulator, but the IDE also gives this error
Quote
gsmmessage.cpp:2:23: error: SerialGSM.h: No such file or directory
when I try to compile your sketch.
Where did you download the "SerialGSM" library from, and where did you put it?
Did you restart the IDE after installation?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12519
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The first error message seems to be related to this piece of code:

Code:
#include <SerialGSM.h>
#include
SerialGSM cell(2,3);

Hopefully, the reason is obvious. I suggest you fix that error and try again.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Pages: [1]   Go Up
Jump to: