|
Hi I'm new in libelium and waspmote... I want to use GPRS to send Email, i see the :Waspmote GPRS Sending & Receiving Emails Example- i configure all but i can't send Email... i' don't know what's the problem exactly, but i think in the number of port... this is the code above, and please tell me what's wrong???
CODE: /* * ------Waspmote GPRS Sending & Receiving Emails Example-------- */
uint8_t mode=0; char bytes; uint8_t* data; uint8_t a=0;
void setup() { USB.begin(); USB.println("USB port started...");
// setup for GPRS serial port GPRS.ON(); USB.println("GPRS module ready..."); Utils.blinkLEDs(1000); // waiting while GPRS connects to the network while(!GPRS.check()); USB.println("GPRS connected to the network"); // configure SMS and Incoming Calls if(GPRS.setInfoIncomingCall()) USB.println("Info Incoming Call OK"); if(GPRS.setInfoIncomingSMS()) USB.println("Info Incoming SMS OK"); if(GPRS.setTextModeSMS()) USB.println("Text Mode SMS OK"); }
void loop() { // Sending EMAIL if(GPRS.sendMail("pamela85.perera@yahoo.fr","pamela85.perera@hotmail.com","Test Message Subject","Test Message!","pamela85","0698657754","SMTP_SERVER",587)) USB.println("Email sent"); else USB.println("Email failed"); a=0; // Reading EMAIL GPRS.readMail("pamela85.perera@hotmail.com","0698657754","POP3_SERVER",995); while( GPRS.emailAddress[a]!='\0' ){ USB.print(GPRS.emailAddress[a],BYTE); a++; if(a>=31) break; } USB.println(""); a=0; while( GPRS.subject[a]!='\0' ){ USB.print(GPRS.subject[a],BYTE); a++; if(a>=31) break; } USB.println(""); a=0; while( GPRS.body[a]!='\0' ){ USB.print(GPRS.body[a],BYTE); a++; if(a>=101) break; } USB.println(""); a=0; delay(5000); }
at the screen, i see this information:
BUSB port started... GPRS module ready... GPRS connected to the network Info Incoming Call OK Info Incoming SMS OK Text Mode SMS OK Email failed
Email failed
Please tell me how to solve this problem to send Email??????
Thank you Best Regard
|