I have tested this code for two devices, but it works without any problems for one device, and for the other it only sends an SMS once, and gives a timeout error for the sec