hello,
i am working on an SMS send receive prototype using electron but i am not successfull . i used a sample code to send AT and read the output from the device but it hangs in loop and nothing seems to be working except the print statements. i just need help on functions and any related documents along with available sample code.
here is my code in case :
#define TIMEOUT 10000
int callback(int type, const char* buf, int len, char* param){
Serial.print("Return: ");
Serial.write((const uint8_t*)buf, len);
Serial.println();
return WAIT;
}
char szCmd[64];
char szReturn[32] = "";
void setup() {
Serial.begin(9600);
}
void loop(){
Serial.print("Sending command\r\n");
delay(1000);
Serial.print(szCmd);
delay(1000);
Serial.println();
delay(1000);
Cellular.command(callback, szReturn, TIMEOUT, "AT");
delay(1000);
Serial.print(szReturn);
delay(1000);
}
i am using the Particle SIM and i read that particle SIM does not support SMS is this true ? . what should i do in that case if i have to implement SMS.
Thanks!
giri babu