Page 1 of 1

Arduino esp8266 to pushsafer api

Posted: 24. Jan 2021, 04:57
by grahamtpp
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

Re: Arduino esp8266 to pushsafer api

Posted: 24. Jan 2021, 12:39
by admin
Any error logs?
Do you see the message in the client app?

Regards Kevin

Re: Arduino esp8266 to pushsafer api

Posted: 24. Jan 2021, 14:05
by grahamtpp
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

Re: Arduino esp8266 to pushsafer api

Posted: 24. Jan 2021, 16:21
by admin
please try again with enabled debug mode

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

Code: Select all

    bool debug = true;
Kevin

Re: Arduino esp8266 to pushsafer api

Posted: 24. Jan 2021, 19:51
by grahamtpp
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

Re: Arduino esp8266 to pushsafer api

Posted: 25. Jan 2021, 15:25
by admin
you installed the pushsafer library > https://github.com/appzer/pushsafer-arduino-library

Delete it and install it again with edited code above > debug=true

Re: Arduino esp8266 to pushsafer api

Posted: 26. Jan 2021, 15:32
by grahamtpp
OK. Thanks. I will give it a try this evening and post back. Graham