4813ab2d28
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. |
||
---|---|---|
.. | ||
main | ||
Makefile | ||
README.md |
Openssl Example
The Example contains of OpenSSL server demo.
First you should configure the project by "make menuconfig": Example Configuration -> 1. WIFI SSID: WIFI network to which your PC is also connected to. 2. WIFI Password: WIFI password
IF you want to test the OpenSSL server demo:
- compile the code and load the firmware
- input the context of "https://192.168.17.128" into your web browser, the IP of your module may not be 192.168.17.128, you should input your module's IP
- You may see that it shows the website is not able to be trusted, but you should select that "go on to visit it"
- You should wait for a moment until your see the "OpenSSL server demo!" in your web browser
Note: The private key and certification at the example are not trusted by web browser, because they are not created by CA official, just by ourselves. You can alse create your own private key and ceritification by "openssl at ubuntu or others". We have the document of "ESP8266_SDKSSL_User_Manual_EN_v1.4.pdf" at "http://www.espressif.com/en/support/download/documents". By it you can gernerate the private key and certification with the fomate of ".pem"
See the README.md file in the upper level 'examples' directory for more information about examples.