# enablePPENtripStream

Source: [https://docs.qualcomm.com/doc/80-PK177-134Y/topic/enable_ppentrip_stream.html](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/enable_ppentrip_stream.html)

在定位模块中启用原生 NTRIP 客户端。一次只需要一个 OEM 应用程序配置 NTRIP 原生客户端。

enablePPENtripStream( )Copy to clipboard

## 参数

| 参数 | API 类型 | 数据类型 | 说明 |
| --- | --- | --- | --- |
| hostNameOrIp | Java | 字符串 | 主机名称、IP 地址或 NTRIP 服务器。 |
| hostNameOrIp | 原生 | const char\* | 主机名称、IP 地址或 NTRIP 服务器。 |
| mountPoint | Java | 字符串 | NTRIP 服务器的挂载点。 |
| mountPoint | 原生 | const char\* | NTRIP 服务器的挂载点。 |
| username | Java | 字符串 | 用于连接服务器的用户名。 |
| username | 原生 | const char\* | 用于连接服务器的用户名。 |
| password | Java | 字符串 | 用于连接服务器的密码。 |
| password | 原生 | const char\* | 用于连接服务器的密码。 |
| port | Java | int | 运行服务器的 IP 端口。 |
| port | 原生 | uint32\_t | 运行服务器的 IP 端口。 |
| requiresNmeaLocation | Java | boolean | NTRIP 服务器需要 NMEA 位置。 |
| requiresNmeaLocation | 原生 | bool | NTRIP 服务器需要 NMEA 位置。 |
| useSSL | Java | boolean | 服务器连接需要 SSL。 |
| useSSL | 原生 | bool | 服务器连接需要 SSL。 |
| enableRTKEngine | Java | boolean | 原生 NTRIP 客户端应启用 RTK 引擎。 |
| enableRTKEngine | 原生 | bool | 原生 NTRIP 客户端应启用 RTK 引擎。 |
|  |  |  |  |

## 返回结果

| 返回结果 | API 类型 | 数据类型 |
| --- | --- | --- |
| [位置状态](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/edgnss_location_status.html) | Java | LocationStatus |
| [位置状态](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/edgnss_location_status.html) | 原生 | pp\_edgnss\_LocationStatus |
|  |  |  |

**Parent Topic:** [原生 NTRIP 客户端 API](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/native_ntrip_client_apis.html)

Last Published: Jun 22, 2023

[Previous Topic
updateNTRIPGGAConsent](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/update_ntripgga_consent.md) [Next Topic
disablePPENtripStream](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/disable_ppentrip_stream.md)