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.

Regards

--------------------------------------------------------------------------------------
on https://github.com/appzer/pushsafer-arduino-library there also a SSL example included.

You have to change the following lines

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