Download FreeRTOS

Quality RTOS & Embedded Software

FreeRTOS website now available in Simplified Chinese
New FreeRTOS Long Term Support version now available.
FreeRTOS Extended Maintenance Program (EMP) registration now open.
FreeRTOS-Plus-TCP v3.0.0 released:
Featured FreeRTOS IoT Integrations:


[FreeRTOS-Plus-TCP API Reference]


void FreeRTOS_SetGatewayAddress( uint32_t ulGatewayAddress );

This function can be used to update the IPv4 address of the gateway used by the FreeRTOS-Plus-TCP device after the TCP stack has already been initialized with a call to FreeRTOS_IPInit().


ulGatewayAddress  The 32-bit IPv4 gateway address, in network endian order, that the device should use. FreeRTOS_htonl can be used to get the network endian representation of the 32-bit gateway address.


This function is not thread safe and should be used with the taskENTER_CRITICAL/taskEXIT_CRITICAL pair. A call to this function should be made only when there is no active connection (either UDP or TCP), or else that connection might be severed.

Example usage:

See the FreeRTOS_SetIPAddress page for an example.

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