To configure your wireless IoT device to use a Twilio SIM requires only a few small configuration settings. You need to set the Twilio Access Point Name (APN) and you need to use the Twilio Commands phone number.
Depending on the device you are using, you may also be required to enter TCP and UDP network timer settings.
If you’d like to try our your SIM in a mobile phone before using it in your IoT device, please see Twilio APN Configuration for Phones.
The APN for the Twilio Programmable Wireless SIM is:
No authentication is required for this APN — please leave any username and password entries blank.
The APN for the Twilio Narrowband SIM, provided in partnership with T-Mobile USA, is:
No authentication is required for the NB-IoT APN — leave any username and password entries blank.
Commands sent from Twilio to your SIM will arrive from the reserved phone number 2936
Commands sent from your SIM to Twilio must be sent to the same number.
For more information about using the Programmable Wireless API’s Command resource, please see the API documentation.
When configuring your device, you may be asked to enter any or all of the following timeout settings. Please use the recommended values.
|Timer Name||Description||Recommended Value|
|Firewall TCP Timer||For mobile-originated communications, this is the amount of time before the network firewalls terminate Transmission Control Protocol (TCP) connections due to inactivity.||1800 seconds|
|Firewall UDP Timer||For mobile-originated communications, this is the amount of time before network firewalls terminate User Datagram Protocol (UDP) connections due to inactivity.||30 seconds|
|Firewall ICMP Timer||This is the amount of time before network firewalls terminate Internet Control Message Protocol (ICMP) due to inactivity.||10 seconds|
|NAT TCP Timer||This is the amount of time before the Network Address Translation (NAT) router releases the address translation for TCP packets due to inactivity.||
1800 seconds for TCP ports 443 and 8080. 300 seconds for all other TCP ports
|NAT UDP Timer||The amount of time before the NAT router releases the address translation for UDP packets due to inactivity.||60 seconds|