Not because It Works "contains" and "getChars ()" does not work well, what fault is this code? Thanks
int LED = 13; // select the pin for the LED
char mystring[32]= "hola";
#include "WString.h"
#define maxLength 512
String buffer1 = String(maxLength); // allocate a new String
String buffer2 = String(maxLength); // allocate a new String
// definition of instance of GSM class
#include "SparkSoftLCD.h"
// LCD transmit pin
#define LCD_TX 12
SparkSoftLCD lcd = SparkSoftLCD(LCD_TX);
void setup() {
pinMode(LED,OUTPUT); // declare the LED's pin as output
Serial.begin(115200); // connect to the serial port
// setup lcd
pinMode(LCD_TX, OUTPUT);
lcd.begin(9600);
lcd.clear();
}
void loop () {
buffer1 = "00:14:a4:8b:76:9e";
buffer2 ="INQUIRY_PARTIAL 00:14:a4:8b:76:9e 72010c";
lcd.clear();
if( buffer2.contains(buffer1)){
lcd.clear();
lcd.print("MAC Not found!!!");
delay(2000);
}
else{
lcd.clear();
lcd.print("MAC in memory");
delay(2000);
}
lcd.print( buffer1.getChars());
delay(2000);
lcd.clear();
lcd.print("OK");
delay(2000);
lcd.clear();
}