Hello world example of a TLS client: fetch an HTTPS page. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-tls

Embed: (wiki syntax)

« Back to documentation index

main.cpp File Reference

main.cpp File Reference

An example TLS Client application. More...

Go to the source code of this file.

Functions

int main ()
 The main function driving the HTTPS client.

Detailed Description

An example TLS Client application.

This application sends an HTTPS request to os.mbed.com and searches for a string in the result.

This example is implemented as a logic class (HelloHttpsClient) wrapping a TCP socket. The logic class handles all events, leaving the main loop to just check if the process has finished.

Definition in file main.cpp.


Function Documentation

int main (  )

The main function driving the HTTPS client.

Definition at line 54 of file main.cpp.