SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The HTTP server is active by default on all device modes (STA, AP, and Wi-Fi Direct). It can be disabled or enabled per each device mode using the sl_NetAppStart / sl_NetAppStop API. The domain name can be set by using the HTTP server options, and are configured through the sl_NetAppSet API with SL_NETAPP_HTTP_SERVER_ID as the App ID. For the configuration to take effect, the server must be restarted (either by stopping and restarting the service or by restarting the entire network subsystem).
Table 10-2 describes the available configuration options.
Option Name | Function | Notes | Default Value |
---|---|---|---|
SL_NETAPP_HTTP_PRIMARY_PORT_NUMBER | Port on which the server accepts new connections | 80 | |
SL_NETAPP_HTTP_PRIMARY_PORT_SECURITY_MODE | Enables the secure socket connection (TLS) on the primary server port | Disabled | |
SL_NETAPP_HTTP_AUTH_CHECK | Enable or disable the client authentication. | Disabled | |
SL_NETAPP_HTTP_AUTH_NAME | Authentication username | Maximum length is 20 characters | Admin |
SL_NETAPP_HTTP_AUTH_PASSWORD | Authentication password | Maximum length is 20 characters | Admin |
SL_NETAPP_HTTP_AUTH_REALM | Authentication realm | Only one realm is supported. Maximum length is 20 characters | SimpleLink CC31xx |
SL_NETAPP_HTTP_ROM_PAGES_ACCESS | Enable access to the configuration pages stored in the ROM of the device and processing of the RESTful APIs. | Enabled | |
SL_NETAPP_HTTP_SECONDARY_PORT_NUMBER | Secondary port on the HTTP server accepts connections. | 80 | |
SL_NETAPP_HTTP_SECONDARY_PORT_ENABLE | Enable or disable secondary port. | Disabled | |
SL_NETAPP_HTTP_PRIVATE_KEY_FILENAME | Public or private pair used for key exchange when secure socket is enabled | N/A | |
SL_NETAPP_HTTP_DEVICE_CERTIFICATE_FILENAME | Public or private pair used for key exchange when secure socket is enabled | N/A | |
SL_NETAPP_HTTP_CA_CERTIFICATE_FILE_NAME | Certificate file name which will be used for client authentication (if present). | N/A |