Rename method.

parent 7a1d9e58
...@@ -121,7 +121,7 @@ SimpleGSM::startCall (const String phoneNumber) ...@@ -121,7 +121,7 @@ SimpleGSM::startCall (const String phoneNumber)
bool bool
SimpleGSM::callIsDialing() SimpleGSM::callIsDialing()
{ {
this->sendCallStatusCommand(); this->queryForCallStatus();
return this->responseIsReceived("+CLCC: 1,0,2,0,0", 500); return this->responseIsReceived("+CLCC: 1,0,2,0,0", 500);
} }
...@@ -129,7 +129,7 @@ SimpleGSM::callIsDialing() ...@@ -129,7 +129,7 @@ SimpleGSM::callIsDialing()
bool bool
SimpleGSM::callIsRinging() SimpleGSM::callIsRinging()
{ {
this->sendCallStatusCommand(); this->queryForCallStatus();
return this->responseIsReceived("+CLCC: 1,0,3,0,0", 500); return this->responseIsReceived("+CLCC: 1,0,3,0,0", 500);
} }
...@@ -175,7 +175,7 @@ SimpleGSM::missedCall (const String phoneNumber, const unsigned long ringingDura ...@@ -175,7 +175,7 @@ SimpleGSM::missedCall (const String phoneNumber, const unsigned long ringingDura
} }
void void
SimpleGSM::sendCallStatusCommand() SimpleGSM::queryForCallStatus()
{ {
this->print(F("AT+CLCC\r")); this->print(F("AT+CLCC\r"));
} }
......
...@@ -39,7 +39,7 @@ class SimpleGSM : public SoftwareSerial ...@@ -39,7 +39,7 @@ class SimpleGSM : public SoftwareSerial
bool setSMSMode (const byte mode); bool setSMSMode (const byte mode);
void sendCallStatusCommand (); void queryForCallStatus ();
bool responseIsReceived (char * const pattern, const long timeOut); bool responseIsReceived (char * const pattern, const long timeOut);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment