execute the command AT+CWLAP and store its response in the buffer string, i get the entire thing.
Can't you parse the part that you want from that? Please post an example of the received string.
So i cant understand why is there a difference between the two.
I am not sure which 2 you mean. Can you post the codes that you mean?
You should try not to use String (note bis S) objects. Their use can cause weird memory problems. Stick with null terminated character arrays or cstrings (strings [small s]).