I am trying my code and I am testing the function fona.sendSMS().
When I use a valid phone number format, it print me this:
(Note 07861112233 is not valid number but an exemple. the format is correct)
Code: Select all
--> AT+CMGS="07861112233"
<--- >
> POSITION
Lat: 46.219871
Lon: 6.140914
GSM loc + http
https://maps.google.com/?q=46.219871,6.140914
^Z
I reveived the SMS+CMGS: 52
But when I enter a unvalid number format by adding a 0 at the bgining
(note: 007861112233 is not a correct format)
It also print me---> AT+CMGS="007861112233"
<--- >
> POSITION
Lat: 46.219871
Lon: 6.140914
GSM loc + http
https://maps.google.com/?q=46.219871,6.140914
^Z
but I never receive the SMS because a swiss number does not start with two 0.+CMGS: 53
(the valid foramt are 0761112233 or +41761112233)
Should it not print +CMGS:0 ?
In any case, in both case fona.sendSMS() return true while it should return false for the second case (when the phone number format is not correct.
Is there any explication?
Many thank