Download FreeRTOS
 

Quality RTOS & Embedded Software

LIBRARIES
WHAT'S NEW
Simplifying Authenticated Cloud Connectivity for Any Device.
Designing an energy efficient and cloud-connected IoT solution with CoAP.
Introducing FreeRTOS Kernel version 11.0.0:
FreeRTOS Roadmap and Code Contribution process.
OPC-UA over TSN with FreeRTOS.

FreeRTOS_GetLocalAddress()

[FreeRTOS-Plus-TCP API Reference]

FreeRTOS_sockets.h
size_t FreeRTOS_GetLocalAddress( ConstSocket_t xSocket, 
                                 struct freertos_sockaddr * pxAddress );
        

Returns the local IP address and the port of a bound socket.

Parameters:

xSocket   The socket being queried.

pxAddress   A freertos_sockaddr structure in which the local address details are returned.

Returns:

Always returns sizeof( freertos_sockaddr ).

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