API
Change the current enabled SIM and preferred SIM settings
Available in 8.0.0 or later
Input Parameters
Type | Notation | Mandatory | Description | |
connId | Number | <int> | required | WAN Connection of the cellular module |
enabledSim | Array | list of {1,2} | optional | Choice of SIMs to be used (1 for SIM Slot A and 2 for SIM Slot B) |
preferredSim | Boolean | {1, 2, null} | optional | Preferred SIM Slot, null to indicate no pereference (Only applicable when multiple SIMs are being used) |
cURL Example
curl -b cookies.txt -H "Content-Type: application/json" -X POST -d '{"connId":4,"enabledSim": [1,2],"preferredSim":1}' http://192.168.1.1/api/cmd.wan.cellular
{ "stat": "ok" }