void test_GPIO()
int , 'str_pin' = ;
- while (!gsmSerial.available()) { // stop the program and see what said*
- Serial.write(gsmSerial.read());*
- }*
I can not find the oddity in the text that starts with int. Please help me to finish the software
void test_GPIO()
int , 'str_pin' = ;
Hi, please post the rest of code
int , 'str_pin' = ;
Please remember to use code tags when posting code
//==========================================
gsmSerial.print("AT+CMGS=");
// gsmSerial.println(current_number), delay(500); //phone number where to send SMS
gsmSerial.println(""" + current_number + """), delay(500); // phone number where to send SMS
//==================================================
for (int i = 0 ; i < n_array ; i++ ) { //poll all switches
str_pin = Npin_real*; //pin number*
if (Npin_init * >= 0) {
gsmSerial.print(Npin_mess * + " [" + String(str_pin) + "] = ");
Serial.print(Npin_mess * + " [" + String(str_pin) + "] = ");
switch (Npin_init) { //check only initialized pins*
* case 0: // INPUT*
if (Npin_pre * > 0 ) {
_ Serial.println("open");
gsmSerial.println("open");
} else {
Serial.println("close");
gsmSerial.println("close");
}
break;
case 1: //OUTPUT*
if (Npin_pre * > 0 ) {*
* Serial.println("ON");
gsmSerial.println("ON");
} else {
Serial.println("Off");
gsmSerial.println("Off");
}
break;
case 2: //analog input*
float tmp_analog = Npin_pre _ / k*;*
Serial.println(analogRead(Npin_real*));
gsmSerial.println(tmp_analog);
_ break;
}
}
}
delay(100), gsmSerial.print((char)26), delay(100), Serial.println("SMS send finish");
delay(3000);
}*
all the rest of the software_
all the rest of the software
No.
Please remember to use code tags when posting code
void test_GPIO()
///// If this is supposed to be a function you are missing the brackets around the function body.
int , 'str_pin' = [i] ; ///// This line makes no sense at all.
while (!gsmSerial.available()) { // stop the program and see what said
Serial.write(gsmSerial.read()); ///// This reads from gsmSerial ONLY if there is nothing to read?!?
}
int ,'str_pin' =line and check it
I will add to you for help on some issues
johnwasser Thank you for your help and I want to add you trouble
expected initializer before 'int' what can I do while writing thank you very much
I guess there are no friends to help
If you correct the errors you've already been told about and then post your COMPLETE code, code that compiles, you'll find plenty of help. Until then....
Steve
expected initializer before !int' and the main problem is that int returns after 'str_pin' = , and even though the errors in the software are fixed
[quote author=mehmet usluer link=msg=3846914 date=1534796704]
expected initializer before !int' and the main problem is that int returns after 'str_pin' = , and even though the errors in the software are fixed
[/quote]
Prove it. POST YOUR CODE!!!!
I've given the rest of the software before and it still gives 'int' problems, although I fix the errors
I am having a very hard time understanding your statements and questions and you seem to be having trouble understanding our requests (like "post all of your sketch"). I think the main problem is a language problem. Have you looked to see if there is a forum in your native language?
it is true that it is a language problem but the problem is mainly that the last 10% of the software has come to fruition the same problem as your esteemed friends did,
ürkçe arduıno site with such extensive information friends unfortunately no ı have done different software before ı do not have any problems ı am here
Post your code.
All of it.
In [code][/code]
tags.
void CheckGPIO() { //check state changes of system in security mode
float tmp_analog;
tmp_array = "" ;
fl
}
//=== END ===
last part
void dec_com(String decom, int depar) {
void Send_SMS_my_phone (String mess) {
delay(3000);
gsmSerial.print("AT+CMGS=");
gsmSerial.println("\" +" ), delay(500); // phone number where to send SMS
gsmSerial.println(mess);
delay(100), gsmSerial.print((char)26), delay(100);
delay(100);
gsmSerial.println("AT+CMGD=1"); //delete SMS
Serial.println("Send_SMS: " + mess);
//delay(15000);
}
before the last section
boolean fl_SMSarray = false;
boolean alarmState = true; // Switch status alarm : True - enabled, false - disabled
void setup ()
{
Serial.begin(9600);
current_number = " ..................";
gsmSerial. begin (4800) ;
//==========
//************
// init SIM800L
//==========
Send_AT("ATE0", 100); //echo transmission is off
AT_echo = false;
/*
//Serial.println (currSymb, DEC); //test
if (AT_echo) Serial.println (currStr) ; //test
}
}
}
first part
I've done what you said so far, but if you want to use the software, I want you to get permission from me
Where are the code tags !?
I've done what you said so far, but if you want to use the software, I want you to get permission from me
What?
Code tags added by Moderator.