Secure example

Pushsafer make it easy and safe to get push-notifications in real time on your Android or Windows mobile device, iPhone, iPad and Desktop!

Mit Pushsafer kann man in Echtzeit, einfach und sicher, Push-Benachrichtigungen auf sein iPhone, iPad, Android oder Windows Gerät sowie auf den Desktop senden lassen!

Google Play
App Store
Windows 10 Store
Posts: 15
Joined: 11. Nov 2019, 16:08

Secure example

Postby vibi27 » 11. Nov 2019, 16:23

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.

User avatar
Site Admin
Posts: 659
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Secure example

Postby admin » 11. Nov 2019, 20:47


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>
Hope this helps...
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! Website - iOS - Android - Windows 10

Posts: 15
Joined: 11. Nov 2019, 16:08

Re: Secure example

Postby vibi27 » 14. Nov 2019, 15:24

Thanks a lot

Who is online

Users browsing this forum: No registered users and 1 guest