Hi developper team,
Do you plan to provide a full example of HTTPS/SSL connexion (for example using an ESP32), like the one existing for HTTP and ESP8266 ?
The pushSafer arduino library seems to have some Secure code in comment, like the line with WifiClientSecure.
Thanks for your reply.
Secure example
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: Secure example
Hello,
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
Line: 36,37
Line: 1,2
Kevin
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
to/*#define SSL_PORT 443*/
#define PORT 80
2. https://github.com/appzer/pushsafer-ard ... hsafer.cpp#define SSL_PORT 443
/*#define PORT 80*/
Line: 36,37
to/*if (client->connect(HOST, SSL_PORT)) {*/
if (client->connect(HOST, PORT)) {
3. https://github.com/appzer/pushsafer-ard ... dEvent.inoif (client->connect(HOST, SSL_PORT)) {
/*if (client->connect(HOST, PORT)) {*/
Line: 1,2
to#include <ESP8266WiFi.h>
/*#include <WiFiClientSecure.h>*/
Hope this helps.../*#include <ESP8266WiFi.h>*/
#include <WiFiClientSecure.h>
Kevin
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Who is online
Users browsing this forum: Google [Bot] and 42 guests