Arduino esp8266 to pushsafer api

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
grahamtpp

Arduino esp8266 to pushsafer api

Postby grahamtpp » 24. Jan 2021, 04:57

Hi. New to the forum, pushsafer and esp8266 so my apologies in advance. I am using the code provided at the following webpage to send a message to my pushsafer account. I am changing the SSID, token codes etc to my own. The code loads ok on to the esp8266 but I am not seeing it on my phone pushsafer app as a message. Can anyone advise what I am doing wrong please.

Code is here on github:
https://github.com/appzer/pushsafer-ard ... dEvent.ino


This is what I see on the serial monitor:

.....
WiFi connected
IP address: 192.168.xxx.xx
Connected
Content-Length: 917
--------------------------b8f610217e83e29b
content-disposition: form-data; name="k"

my pushsafer key displayed here
--------------------------b8f610217e83e29b
content-disposition: form-data; name="m"

This is a test message
--------------------------b8f610217e83e29b
content-disposition: form-data; name="d"

a
--------------------------b8f610217e83e29b
content-disposition: form-data; name="s"

8
--------------------------b8f610217e83e29b
content-disposition: form-data; name="v"

1
--------------------------b8f610217e83e29b
content-disposition: form-data; name="i"

1
--------------------------b8f610217e83e29b
content-disposition: form-data; name="c"

#FFCCCC
--------------------------b8f610217e83e29b
content-disposition: form-data; name="t"

Hello!
--------------------------b8f610217e83e29b
content-disposition: form-data; name="pr"

0
--------------------------b8f610217e83e29b--


Sent

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

Re: Arduino esp8266 to pushsafer api

Postby admin » 24. Jan 2021, 12:39

Any error logs?
Do you see the message in the client app?

Regards 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

grahamtpp

Re: Arduino esp8266 to pushsafer api

Postby grahamtpp » 24. Jan 2021, 14:05

Hi Kevin. Thanks for responding. I see no event on the pushsafer app. Sorry not sure what you mean by error logs. Where will I find that log please. Thx

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

Re: Arduino esp8266 to pushsafer api

Postby admin » 24. Jan 2021, 16:21

please try again with enabled debug mode

LINE 59 => https://github.com/appzer/pushsafer-ard ... ushsafer.h

Code: Select all

    bool debug = true;
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

grahamtpp

Re: Arduino esp8266 to pushsafer api

Postby grahamtpp » 24. Jan 2021, 19:51

Hi Kevin. Sorry, but I think I am out of my depth here... I have copied the code on the github you supplied and ran it with an error appearing at the bottom that says collect2.exe error exit 1. Error compiling for board generic esp8266. There was no wifi network code in that file. Not sure what you mean by debug mode. As I say, I think my knowledge is not sufficient to fix this, apologies. Thanks for trying though. Graham

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

Re: Arduino esp8266 to pushsafer api

Postby admin » 25. Jan 2021, 15:25

you installed the pushsafer library > https://github.com/appzer/pushsafer-arduino-library

Delete it and install it again with edited code above > debug=true
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

grahamtpp

Re: Arduino esp8266 to pushsafer api

Postby grahamtpp » 26. Jan 2021, 15:32

OK. Thanks. I will give it a try this evening and post back. Graham

Max4444

Re: Arduino esp8266 to pushsafer api

Postby Max4444 » 8. Mar 2021, 01:30

Any luck?


Who is online

Users browsing this forum: ClarazkaMoido and 33 guests