Hi, I´m trying to use pushsafer on arduino with sim800L module.
I have a gprs connection active, but I´m not sure how I have to declare the push safer on my sketch.
On Pushsafer example on ESP8266WiFi, we have the WIFI client declared:
/*WiFiClientSecure client;*/
WiFiClient client;
then:
Pushsafer pushsafer(PushsaferKey, client);
but on gprs I have not this...
How can I proceed?
Thanks in advance!
GPRS Client on arduino
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: GPRS Client on arduino
instead the WiFi Client as client you have to use the GSMClient as client wit GPRS access.
https://www.arduino.cc/en/Tutorial/GSMToolsTestGPRS
https://www.arduino.cc/en/Tutorial/GSMToolsTestGPRS
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
Re: GPRS Client on arduino
See example I use and just works
Code: Select all
.....
#include <Pushsafer.h>
#define PushsaferKey "your_key"
.....
GSMClient gsmClient; // Used for the TCP socket connection
Pushsafer pushsafer(PushsaferKey, gsmClient);
.....
pushNotification("GSM", "Reconnect");
void pushNotification(char* title, char* message) {
struct PushSaferInput input;
input.message = message;
input.title = title;
input.sound = "";
input.vibration = "1";
input.icon = "2";
input.iconcolor = "#FFCCCC";
input.priority = "1";
input.device = "a";
input.url = "";
input.urlTitle = "";
input.picture = "";
input.picture2 = "";
input.picture3 = "";
input.time2live = "";
input.retry = "";
input.expire = "";
input.answer = "";
pushsafer.sendEvent(input);
}
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: GPRS Client on arduino

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: Bing [Bot], Google [Bot] and 55 guests