# LastmileProbeConfig (/zh-CN/api-reference/rtc/cpp-all-platforms/class-lastmileprobeconfig)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```cpp
struct LastmileProbeConfig {
bool probeUplink;
bool probeDownlink;
unsigned int expectedUplinkBitrate;
unsigned int expectedDownlinkBitrate;
};
```
## 属性 [#属性]
设置是否测试上行网络:
- true:测试上行网络。例如,在频道场景为 `LIVE_BROADCASTING` 时,观众用户不需要进行此测试。
- false:不测试上行网络。
设置是否测试下行网络:
- true:测试下行网络。
- false:不测试下行网络。
本地用户期望的最大上行码率(bps),取值范围为 [100000, 5000000]。建议参考 [setVideoEncoderConfiguration](/zh-CN/api-reference/rtc/cpp-all-platforms/video/video-basic#api_irtcengine_setvideoencoderconfiguration) 设置该值。
本地用户期望的最大下行码率(bps),取值范围为 [100000, 5000000]。