|  Developer
Updated on November 11, 2021

hub.network.modem.try_connect

  • Version: 1.0
  • Try to establish a modem internet connection via the specified interface. It’s an async request, errors, mainly, are returned, if any, via broadcasts.
Edit
Field Type Required Description
interfaceId string + Id of the interface (mobileX)
operator string Mobile operator to establish a modem internet connection through
pinCode string SIM pin code
initializeAt string Modem initializing string
dialNumber string Dial number
apn string Access point name
pdpType string Packet Data Protocol type (IPv4, IPv6)
username string PPP username
password string PPP password
authMode string PPP authentication mode (auto, pap, chap)
Edit
  • Return empty result or error.
Edit
Broadcast Description
hub.network.changed Result of try_connect request
hub.network.modem.pin_code.enter.failed Describe fail reason
Edit
Edit
				
					{
    "method": "hub.network.modem.try_connect",
    "id": "_ID_",
    "params": {
        "interfaceId" : "modem0",
        "operator" : "lifecell",
        "pinCode" : "1234",
        "initializeAt" : "AT&F1&R2%7=60",
        "dialNumber" : "*99#",
        "apn" : "internet"
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}