thali/NextGeneration/thaliMobile.js
function start (router, pskIdToSecret, networkType) {
  if (thaliMobileStates.started === true) {
    return Promise.reject(new Error('Call Stop!'));
  }
  thaliMobileStates.started = true;
  thaliMobileStates.networkType =
    networkType || global.NETWORK_TYPE || thaliMobileStates.networkType;

  return getWifiOrNativeMethodByNetworkType('start',
    thaliMobileStates.networkType)(router, pskIdToSecret)
    .then(function (result) {
      if (result.wifiResult === null && result.nativeResult === null) {
        return result;
      }
      return Promise.reject(result);
    });
}
function start (router, pskIdToSecret, networkType) {
  if (thaliMobileStates.started === true) {
    return Promise.reject(new Error('Call Stop!'));
  }
  thaliMobileStates.started = true;
  thaliMobileStates.networkType =
    networkType || global.NETWORK_TYPE || thaliMobileStates.networkType;

  return getWifiOrNativeMethodByNetworkType('start',
    thaliMobileStates.networkType)(router, pskIdToSecret)
    .then(function (result) {
      if (result.wifiResult === null && result.nativeResult === null) {
        return result;
      }
      return Promise.reject(result);
    });
}
function start ( router , pskIdToSecret , networkType ) { if ( thaliMobileStates . started === true ) { return Promise . reject ( new Error ( 'Call Stop!' ) ) ; } thaliMobileStates . started = true ; thaliMobileStates . networkType = networkType || global . NETWORK_TYPE || thaliMobileStates . networkType ; return getWifiOrNativeMethodByNetworkType ( 'start' , thaliMobileStates . networkType ) ( router , pskIdToSecret ) . then ( function ( result ) { if ( result . wifiResult === null && result . nativeResult === null ) { return result ; } return Promise . reject ( result ) ; } ) ; }
This object is our generic status wrapper that lets us return information
about both WiFi and Native.

@public
@typedef {Object} combinedResult
@property {?Error} wifiResult
@property {?Error} nativeResult
This object is our generic status wrapper that lets us return information about both WiFi and Native .