Dear ,
I want to source code about turn on and turn off led by making a missed call.
Regards.
Mr. Madan mohan mishra
Dear ,
I want to source code about turn on and turn off led by making a missed call.
Regards.
Mr. Madan mohan mishra
I want a J class yacht moored off Juan Les Pins, crewed by Miss Universe contestants.
making a missed call
We Have No Idea What That Means!!
terryking228:
We Have No Idea What That Means!!
I guess he wants to control something by detecting an incoming call without answering it.
Well here you go:
WaitForCall();
If (ledIsOff()){
TurnLedOn();
}else{
TurnLedOff();
}
Just fill in the blanks
couka:
I guess he wants to control something by detecting an incoming call without answering it.Well here you go:
WaitForCall();
If (ledIsOff()){
TurnLedOn();
}else{
TurnLedOff();
}
Just fill in the blanks
. .. and correct the case
AWOL:
. .. and correct the case
Sorry, I forgot to set my phone's autocorrect language to "C"
Do whatever you want with the knowledge that a 'valid' number called and you hung up on them without answering.
If you don't care who calls - skip steps 2 & 3
this is the code for LED Turn in and OFF LED by using missed Call
#include<SoftwareSerial.h>
SoftwareSerial gsm(2,3);//2 is RX Pin 3 is TX Pin of Arduino Uno
int led = LED_BUILTIN;
char phoneNo[]="91xxxxxxxxxx";//replace xxxxx with your mob no.
int ledState =0;
int oldCon = 0;
int con;
void setup()
{ pinMode(led, OUTPUT);
gsm.begin(9600);
}
void loop()
{
if(gsm.available())
{
con = gsm.find(phoneNo, 12);//function gsm.find() only return '1'or '0'
if(con==1 && oldCon==0)
{
delay(2000);
gsm.println("ATH");
if(ledState==0)
{digitalWrite(led, HIGH);
ledState=1;
}
else
{digitalWrite(led, LOW);
ledState=0;
}
}
oldCon=con;
}
}
Your TARDIS is missing!