OVMS3-idf/examples/protocols/openssl_client
Ivan Grokhotkov 4813ab2d28 examples: check return value of nvs_flash_init
nvs_flash_init may return an error code in some cases, and applications
should check this error code (or at least assert on it being ESP_OK, to
make potential issues more immediately obvious).

This change modifies all the examples which use NVS to check the error
code. Most examples get a simple ESP_ERROR_CHECK assert, while NVS
examples, OTA example, and NVS unit tests get a more verbose check which
may be used in real applications.
2017-03-15 10:44:54 +08:00
..
main examples: check return value of nvs_flash_init 2017-03-15 10:44:54 +08:00
Makefile Moved examples to new folders / categories. Removed example numbers from example names 2017-01-16 23:08:35 +01:00
README.md Moved examples to new folders / categories. Removed example numbers from example names 2017-01-16 23:08:35 +01:00

Openssl Example

The Example contains of OpenSSL client demo.

First you should config the project by "make menuconfig": Example Configuration -> 1. Target Domain : the domain that you want to connect to, and default is "www.baidu.com". 2. Target port number : the port number of the target domain, and default is 443. 3. WIFI SSID : your own WIFI, which is connected to the Internet, and default is "myssid". 4. WIFI Password : WIFI password, and default is "mypassword"

If you want to test the OpenSSL client demo:

  1. compile the code and load the firmware
  2. open the UART TTY, then you can see it print the context of target domain

See the README.md file in the upper level 'examples' directory for more information about examples.