-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
Basic_Ssl
, Echo_Ssl
and HttpClient
sample readme.
- Loading branch information
Showing
3 changed files
with
10 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,4 @@ | ||
Echo SSL | ||
======== | ||
|
||
Compilation | ||
----------- | ||
|
||
In Sming the SSL support is not enabled by default. | ||
|
||
In order to enable it you should first recompile SmingFramework with | ||
:envvar:`ENABLE_SSL` =1 directive. This can be done using the following commands: | ||
|
||
.. code:: bash | ||
cd <path-to-sming>/Sming | ||
make clean | ||
make ENABLE_SSL=1 | ||
Once you have enabled the SSL support in SmingFramework you can go | ||
forward and compile your application with the same directive. For | ||
example the Basic_Ssl project should be compiled with | ||
|
||
.. code:: bash | ||
cd <path-to-sming>/samples/Basic_Ssl | ||
make clean | ||
make ENABLE_SSL=1 | ||
Now you can flash your application to your ESP8266 device. | ||
|
||
Debug Information | ||
----------------- | ||
|
||
If you want to see more debug information during compile type you should | ||
add the directive :envvar:`SSL_DEBUG` =1. A recompilation of SmingFramework with | ||
SSL support and SSL dubug information can be done with the following | ||
commands: | ||
|
||
.. code:: bash | ||
cd <path-to-sming>/Sming | ||
make clean | ||
make ENABLE_SSL=1 SSL_DEBUG=1 | ||
Slow SSL negotiation | ||
-------------------- | ||
|
||
The initial SSL negotiation is CPU intensive. By default SmingFramework | ||
switches the CPU frequency from 80 to 160 MHz. After the negotiation the | ||
CPU is switched back to 80 MHz. | ||
|
||
If your device is running on battery this can drain the battery much | ||
faster. If you do not want the switch from 80 to 160 MHz to happen then | ||
make sure to recompile SmingFramework with :c:macro:`SSL_SLOW_CONNECT` defined. | ||
See :sample:`Basic_Ssl` for information on compiling and configuring SSL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,4 @@ | ||
HTTP Client | ||
=========== | ||
|
||
Compilation | ||
----------- | ||
|
||
In Sming the SSL support is not enabled by default. | ||
|
||
In order to enable it you should compile your project with the | ||
:envvar:`ENABLE_SSL` =1 directive. This can be done using the following command: | ||
|
||
.. code:: bash | ||
make ENABLE_SSL=1 | ||
Now you can flash your application to your ESP8266 device. | ||
|
||
Debug Information | ||
----------------- | ||
|
||
If you want to see more debug information during compile type you should | ||
add the directive :envvar:`SSL_DEBUG` =1, like this: | ||
|
||
.. code:: bash | ||
make ENABLE_SSL=1 SSL_DEBUG=1 | ||
Slow SSL negotiation | ||
-------------------- | ||
|
||
The initial SSL negotiation is CPU intensive. By default SmingFramework | ||
switches the CPU frequency from 80 to 160 MHz. After the negotiation the | ||
CPU is switched back to 80 MHz. | ||
|
||
If your device is running on battery this can drain the battery much | ||
faster. If you do not want the switch from 80 to 160 MHz to happen then | ||
make sure to recompile SmingFramework with :c:macro:`SSL_SLOW_CONNECT` directive: | ||
|
||
.. code:: bash | ||
make USER_CFLAGS="SSL_SLOW_CONNECT=1" | ||
See :sample:`Basic_Ssl` for information on compiling and configuring SSL. |