SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
Functions used for configuring the port number.
Function name | Description | Parameters |
---|---|---|
| Sets the port number on which the HTTP server will listen. Port number is UINT16. | appId = SL_NET_APP_HTTP_SERVER_ID Option = NETAPP_SET_GET_HTTP_OPT_PORT_NUMBER pOptionLen = 2 (size of UINT16) pOptionValue = pointer to port number (UINT16) |
| Gets the current HTTP server port number. Port number is UINT16. | appId = SL_NET_APP_HTTP_SERVER_ID Option = NETAPP_SET_GET_HTTP_OPT_PORT_NUMBER pOptionLen = user-supplied pointer for the returned value len pOptionValue = user-supplied pointer for the returned value |
After setting a new port number, restart the server for the configuration to occur.