Dear Sir or Madam,
I am trying to make working a small GPS and GPRS/GSM module.
In my Arduino software, I created a file and I initiate the GPS communication through pin 6 and 7
#define GPSTX 6 //(connect to RX of other device)
#define GPSRX 7 //(connect to TX of other device)
SoftwareSerial uart_gps(GPSTX, GPSRX); //Create a fake serial port 0 and 1
I also found a library and that library is inlcude in to my ino file
#include "inetGSM.h"
I also can find this, in inetGSM.h
class GSM
{
public:
enum GSM_st_e { ERROR, IDLE, READY, ATTACHED, TCPSERVERWAIT, TCPCONNECTEDSERVER, TCPCONNECTEDCLIENT };
byte comm_buf[COMM_BUF_LEN+1]; // communication buffer +1 for 0x00 termination
void InitParam (byte group);
#ifdef UNO
SoftwareSerial _cell;
#endif
and this,
#ifdef UNO
GSM::GSM():_cell(_GSM_RXPIN_,_GSM_TXPIN_),_tf(_cell, 10),_status(IDLE){
};
Listen()
In order to use two serial port, I have to listem uart_GPS.listen(), and them _cell.listen();
The problem, _cell.listen() return me a error, because he can not find _cell in it scope.
I tryed GSM::_cell.listen(), but it does not work.
Do you have an idea how can I run a listing function, while it has not bee initiated in a ino file?
Many thank for your help
Cheers