ESP8266 compiler error

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
Homepage
stepst
Posts: 2
Joined: 11. Feb 2019, 19:10

ESP8266 compiler error

Postby stepst » 11. Feb 2019, 19:33

Hello,

I would like to compille the pushsaver ESP8266 example and I got this error message below.
I use the arduino Ide and a NodeMCU 0.9 (ESP-12 Module) board.
I have used the witnessmenow/pushsafer-arduino-library from github.

Can everybody help, how I can compile the example

Thanks in advance for help

stepst

**********************************************
the error message:

C:\Program Files (x86)\Arduino\libraries\pushsafer-arduino-library-master\src\Pushsafer.cpp: In member function 'String Pushsafer::sendEvent(PushSaferInput)':

C:\Program Files (x86)\Arduino\libraries\pushsafer-arduino-library-master\src\Pushsafer.cpp:75:14: error: 'struct PushSaferInput' has no member named 'time2live'

if(input.time2live != "")

^

C:\Program Files (x86)\Arduino\libraries\pushsafer-arduino-library-master\src\Pushsafer.cpp:77:72: error: 'struct PushSaferInput' has no member named 'time2live'

start_request = start_request + buildString(boundary, "l", input.time2live);
Bibliothek ESP8266WiFi in Version 1.0 im Ordner: C:\Users\steph\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi wird verwendet
Bibliothek pushsafer-arduino-library-master in Version 1.0.0 im Ordner: C:\Program Files (x86)\Arduino\libraries\pushsafer-arduino-library-master wird verwendet
Bibliothek Antares_ESP8266_MQTT in Version 0.9.0 im Ordner: C:\Users\steph\Documents\Arduino\libraries\Antares_ESP8266_MQTT wird verwendet
exit status 1
Fehler beim Kompilieren für das Board NodeMCU 0.9 (ESP-12 Module).

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

Re: ESP8266 compiler error

Postby admin » 11. Feb 2019, 20:31

Hello,

i fixed the INO File! Please try again!

https://github.com/appzer/pushsafer-ard ... dEvent.ino

Kevin
DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10

stepst
Posts: 2
Joined: 11. Feb 2019, 19:10

Re: ESP8266 compiler error

Postby stepst » 12. Feb 2019, 17:12

Hello Kevin,


I have chanced the lib an try to compile the example but unfortunately it is not working.
If I remove this both lines, I get the old error messsage.


Do you have any idea whats wrong?

Thanks for your help

stepst

*************************

error message
with this lines of code

input.iconcolor = "#FFCCCC";
input.priority = "1";




Sketch wird kompiliert...
"C:\\Users\\steph\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\steph\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\steph\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\steph\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\steph\\AppData\\Local\\Temp\\arduino_build_474766/core" -c -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10807 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_QIO -DESP8266 "-IC:\\Users\\steph\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\steph\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\nodemcu" "-IC:\\Users\\steph\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\ESP8266WiFi\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\pushsafer-arduino-library-master\\src" "-IC:\\Users\\steph\\Documents\\Arduino\\libraries\\Antares_ESP8266_MQTT\\src" "C:\\Users\\steph\\AppData\\Local\\Temp\\arduino_build_474766\\sketch\\sendEvent.ino.cpp" -o "C:\\Users\\steph\\AppData\\Local\\Temp\\arduino_build_474766\\sketch\\sendEvent.ino.cpp.o"
C:\Users\steph\AppData\Local\Temp\arduino_modified_sketch_316701\sendEvent.ino: In function 'void setup()':

sendEvent:50:9: error: 'struct PushSaferInput' has no member named 'iconcolor'

input.iconcolor = "#FFCCCC";

^

sendEvent:51:9: error: 'struct PushSaferInput' has no member named 'priority'

input.priority = "1";

^

sendEvent:58:9: error: 'struct PushSaferInput' has no member named 'time2live'

input.time2live = "";

^

sendEvent:59:9: error: 'struct PushSaferInput' has no member named 'retry'

input.retry = "";

^

sendEvent:60:9: error: 'struct PushSaferInput' has no member named 'expire'

input.expire = "";

^

sendEvent:61:9: error: 'struct PushSaferInput' has no member named 'answer'

input.answer = "";

^

Bibliothek ESP8266WiFi in Version 1.0 im Ordner: C:\Users\steph\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi wird verwendet
Bibliothek pushsafer-arduino-library-master in Version 1.0.0 im Ordner: C:\Program Files (x86)\Arduino\libraries\pushsafer-arduino-library-master wird verwendet
Bibliothek Antares_ESP8266_MQTT in Version 0.9.0 im Ordner: C:\Users\steph\Documents\Arduino\libraries\Antares_ESP8266_MQTT wird verwendet
exit status 1
'struct PushSaferInput' has no member named 'iconcolor'

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

Re: ESP8266 compiler error

Postby admin » 12. Feb 2019, 19:51

Hi,

for me it works fine.
Can you try to get help in a arduino forum, there where the pro's are!

Thanks Kevin
DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
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 1 guest