gsmSetNetworkType (Function) |
Top Previous Next |
This function selects the preferred service type from the cellular network (2G, 3G or 4G).
If a specific network service type is selected, then the device will not try to connect to other network services. For example, if the 3G network is selected, then the connection will be lost when entering an area where an only 2G network is present.
To avoid this it is possible to specify the preferred search order (Not available on all devices). For example, setting the search order to '2G then 3G' will make the device try to connect to the 2G network if it is present. If the 2G network is not present or disappears, then the device will search for a 3G network.
Note:
Input: type : SINT (default: 0) The network type to use.
order : SINT (default: 0) The order used to search for network types. (Is only used when type is set to Search order)
Returns: INT
Declaration: FUNCTION gsmSetNetworkType : INT;
Example: INCLUDE rtcu.inc |