GPRS Client on arduino

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 Store
Homepage
lcorrea

GPRS Client on arduino

Postby lcorrea » 22. Jan 2020, 18:58

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!

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

Re: GPRS Client on arduino

Postby admin » 23. Jan 2020, 22:08

instead the WiFi Client as client you have to use the GSMClient as client wit GPRS access.

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

salvq123

Re: GPRS Client on arduino

Postby salvq123 » 26. Jan 2020, 16:53

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);
}

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

Re: GPRS Client on arduino

Postby admin » 26. Jan 2020, 21:24

8-) great!
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


Who is online

Users browsing this forum: No registered users and 33 guests