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 |