Page 1 of 1

ESP8266 wificlient secure

Posted: 8. Mar 2021, 01:26
by Max4444
Hello all,
Has anyone got the wificlientsecure running?

I have done the following and also changed Debug to "true"
the serial port seems to print the same information and seems okay at my end.
Nothing printed that seems"debug" type errors.
All works fine the standard way, i just wanted to improve security.


on there also a SSL example included.

You have to change the following lines

1. ... ushsafer.h
Line: 30,31
/*#define SSL_PORT 443*/
#define PORT 80
#define SSL_PORT 443
/*#define PORT 80*/
2. ... hsafer.cpp
Line: 36,37
/*if (client->connect(HOST, SSL_PORT)) {*/
if (client->connect(HOST, PORT)) {
if (client->connect(HOST, SSL_PORT)) {
/*if (client->connect(HOST, PORT)) {*/
3. ... dEvent.ino
Line: 1,2
#include <ESP8266WiFi.h>
/*#include <WiFiClientSecure.h>*/
/*#include <ESP8266WiFi.h>*/
#include <WiFiClientSecure.h>