In Sming the SSL support is not enabled by default.
In order to enable it you should compile your project with the
ENABLE_SSL =1 directive. This can be done using the following command:
Now you can flash your application to your ESP8266 device.
If you want to see more debug information during compile type you should
add the directive
SSL_DEBUG =1, like this:
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
SSL uses a significant amount of RAM. You can build this sample to track heap usage and output statistics every 5 seconds: