- If ping succeed, it will continually ping the server.
- If ping fail, it will try to reconnect to the server.
- If the connection broke, it will try to reconnect to the server.
- It will verify the server's certificate during handshake.
Thanks for your interest in ESP8266 !
附件是基于 ESP8266_RTOS_SDK 的 SSL 简单示例,它将连接 Espressif Cloud 并且发送 ping 包。
- 如果 ping 成功,间隔一段时间后,将继续发送 ping 包。
- 如果 ping 失败,ESP8266 将主动断开连接,重新握手。
- 如果连接断开,ESP8266 将重新握手。
- 本示例在握手时会执行服务器证书的单向验证。
感谢您对 ESP8266 的关注!