SMS temperature control

Hello!
I want to control a temperature with SMS using two GSM module one is transmitter and the other receiver is linked with keypad.
The user can enter the temperature he wants and the temperature should be displayed on a computer graphic display.
but my code is not finished yet, when i have simulated, there is an error as below and help me to make graphical display of temperature on the screen please !!
In file included from C:\Program Files (x86)\Arduino\libraries\Keypad/Keypad.h:36:0,

from C:\Users\Angela\Desktop\smkeypad\smkeypad.ino:4:

C:\Program Files (x86)\Arduino\libraries\Keypad/utility/Key.h:46:15: error: redeclaration of ‘IDLE’

typedef enum{ IDLE, PRESSED, HOLD, RELEASED } KeyState;

^

In file included from C:\Program Files (x86)\Arduino\libraries\GSM\src/GSM3MobileNetworkProvider.h:37:0,

from C:\Program Files (x86)\Arduino\libraries\GSM\src/GSM3MobileClientService.h:37,

from C:\Program Files (x86)\Arduino\libraries\GSM\src/GSM.h:42,

from C:\Users\Angela\Desktop\smkeypad\smkeypad.ino:3:

C:\Program Files (x86)\Arduino\libraries\GSM\src/GSM3MobileAccessProvider.h:37:36: note: previous declaration ‘GSM3_NetworkStatus_t IDLE’

enum GSM3_NetworkStatus_t { ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED, OFF};

Here is my code

// Include the GSM library
#include <GSM.h>
#include <Keypad.h>
char remoteNum[10];

#define PINNUMBER “”
const byte numRows = 4; //four rows
const byte numCols = 4; //four columns
//define the cymbols on the buttons of the keypads
char keymap[numRows][numCols] = {
{‘1’,‘2’,‘3’,‘A’},
{‘4’,‘5’,‘6’,‘B’},
{‘7’,‘8’,‘9’,‘C’},
{’#’,‘0’,’*’,‘D’}
};
byte rowPins[numRows] = {12,11, 10, 9}; //connect to the row pinouts of the keypad
byte colPins[numCols] = {8, 6, 5, 4}; //connect to the column pinouts of the keypad

//initialize an instance of class NewKeypad
Keypad myKeypad= Keypad(makeKeymap(keymap), rowPins, colPins, numRows, numCols);

// initialize the library instance
GSM gsmAccess;
GSM_SMS sms;

void setup()
{
// initialize serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}

Serial.println(“SMS Messages Sender”);

// connection state
boolean notConnected = true;

// Start GSM shield
// If your SIM has PIN, pass it as a parameter of begin() in quotes
while(notConnected)
{
if(gsmAccess.begin(PINNUMBER)==GSM_READY)
notConnected = false;
else
{
Serial.println(“Not connected”);
delay(1000);
}
}

Serial.println(“GSM initialized”);
}

void loop()
{
Serial.print("Enter a mobile number: ");
int i;
for (i = 0; i < 10; i++)
{
char keypressed = myKeypad.getKey();
if (keypressed != NO_KEY)
{
remoteNum = keypressed ;

  • Serial.print(keypressed);*
  • myKeypad.setDebounceTime(250);*
  • char keypressed = myKeypad.waitForKey();*
  • }*
    _ remoteNum = ‘\0’;_
    * }*

* // sms text*
* Serial.print("Now, enter SMS content: ");*
* char txtMsg[200];*
// readSerial(txtMsg);
* Serial.println(“SENDING”);*
* Serial.println();*
* Serial.println(“Message:”);*
* Serial.println(txtMsg);*

* // send the message*
* sms.beginSMS(remoteNum);*
* sms.print(txtMsg);*
* sms.endSMS();*
Serial.println("\nCOMPLETE!\n");

}
[/quote]
help me,please please

C:\Program Files (x86)\Arduino\libraries\Keypad/utility/Key.h:46:15: error: redeclaration of 'IDLE'

typedef enum{ IDLE, PRESSED, HOLD, RELEASED } KeyState;

And Mr. Google is on vacation?

I did not find the solution of my eror. please help me!!

enum GSM3_NetworkStatus_t { ERROR, [color=red]IDLE[/color], CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED, OFF};
typedef enum{ [color=red]IDLE[/color], PRESSED, HOLD, RELEASED } KeyState;

Don’t use that same word IDLE twice....

said that I must make, pleasa!!

yvanah: said that I must make, pleasa!!

What does that mean?

How much more obvious does it need to be made that you MUST change one of the libraries to NOT use the name IDLE? Use ANY other name in one of the classes.