samples: http_get: connect without TLS by default on cc3220sf_launchxl
The example should work on the cc3220sf_launchxl by following the same flow as on other boards, ie. by connecting with plain http by default and use TLS only when an overlay is specified. We update the configuration for cc3220_launchxl to not use TLS by default and the README to point users to the right overlay file to use. Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
parent
c0026346a3
commit
f1c0eb915b
3 changed files with 5 additions and 2 deletions
|
@ -56,6 +56,9 @@ Enable TLS support in the sample by building the project with the
|
|||
An alternative way is to specify ``-DOVERLAY_CONFIG=overlay-tls.conf`` when
|
||||
running ``west build`` or ``cmake``.
|
||||
|
||||
For boards that support TLS offloading (e.g. TI's cc3220sf_launchxl), use
|
||||
``overlay-tls-offload.conf`` instead of ``overlay-tls.conf``.
|
||||
|
||||
The certificate used by the sample can be found in the sample's ``src``
|
||||
directory. The certificate was selected to enable access to the default website
|
||||
configured in the sample (https://google.com). To access a different web page
|
||||
|
|
|
@ -9,8 +9,7 @@ CONFIG_WIFI=y
|
|||
CONFIG_WIFI_SIMPLELINK=y
|
||||
CONFIG_NET_SOCKETS_OFFLOAD=y
|
||||
|
||||
# Enable Secure Socket Offload
|
||||
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
|
||||
# Enable TLS credential filenames for secure socket offload
|
||||
CONFIG_TLS_CREDENTIAL_FILENAMES=y
|
||||
|
||||
# Disable unneeded settings from the base prj.conf:
|
||||
|
|
1
samples/net/sockets/http_get/overlay-tls-offload.conf
Normal file
1
samples/net/sockets/http_get/overlay-tls-offload.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
|
Loading…
Add table
Add a link
Reference in a new issue