下载 FreeRTOS
 

出色的 RTOS & 嵌入式软件

最新资讯
简化任何设备的身份验证云连接。
利用 CoAP 设计节能型云连接 IoT 解决方案。
11.0.0 版 FreeRTOS 内核简介:
FreeRTOS 路线图和代码贡献流程。
使用 FreeRTOS 实现 OPC-UA over TSN。

FreeRTOS_IsEndPointUp()

[FreeRTOS-Plus-TCP API 引用]

FreeRTOS_IP.h
BaseType_t FreeRTOS_IsEndPointUp( const struct xNetworkEndPoint * pxEndPoint )

用于测试端点 (pxEndPoint) 当前是接通(已连接)还是中断(已断开)。请注意,断开事件来自 网络接口驱动程序,因此它们依赖网络接口驱动程序来实现。如果 pxEndPoint 为 NULL, 函数将返回是否所有端点都已连接。

参数:

pxEndPoint
感兴趣的端点,若为 NULL,则检查所有端点的状态。

返回:
如果给定的端点(或所有端点,如果 pxEndPoint 为 NULL)接通(已连接),则返回 pdTRUE。否则返回 pdFALSE。

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.