XBEE cellular SMS error

Hello.

Is this familiar error to you?

I think settings (P# set , IP Protocol = SMS, latest firmware 11411 ect…) are correct…

paste mode; Ctrl-C to cancel, Ctrl-D to finish
1=== import network
2=== c = network.Cellular()
3=== c.isconnected()
4=== c.sms_send(“phonenumber”, “testi”)
5===
True
Traceback (most recent call last):
File “”, line 4, in
OSError: [Errno 7005] EIO

The code you pasted needs to wait for the cellular connection to be up. The code should look something like:

import network
import time

phone_number = “XXXXXXXXXX” # Target Phone number

c = network.Cellular()
while not c.isconnected():
time.sleep(1) # Indent this line once
c.sms_send(phone_number, “Test!”)