Page 1 of 1

Send a notification with Arduino

Posted: 15. Jan 2020, 00:10
by PaulMolto
Hello everyone,

I'm trying desperately to send a notification from my Arduino Mega 2560 to my iPhone thanks to Pushsafer. :roll:
I have used the example sendEvent available on Github, but it doesn't seem to work. I have obviously replace the network SSID, network key and the PushsaferKey. It seems to work, but I don't receive the notification :cry:

Here is the message that I have when I drop the sketch to the WeMos :

Executable segment sizes:
IROM : 246632 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26892 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1272 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 1192 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 29168 ) - zeroed variables (global, static) in RAM/HEAP
Le croquis utilise 275988 octets (26%) de l'espace de stockage de programmes. Le maximum est de 1044464 octets.
Les variables globales utilisent 31632 octets (38%) de mémoire dynamique, ce qui laisse 50288 octets pour les variables locales. Le maximum est de 81920 octets.
esptool.py v2.8
Serial port /dev/cu.usbserial-1420
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: dc:4f:11:60:aa:1f
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 280144 bytes to 203667...

Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 280144 bytes (203667 compressed) at 0x00000000 in 5.1 seconds (effective 439.7 kbit/s)...
Hash of data verified.



If anyone have an idea, please do not hesitate :D

Re: Send a notification with Arduino

Posted: 15. Jan 2020, 15:50
by admin
Hello,

the log data you sent include no debug data from the pushsafer script.

Log data from pushsafer look like:

Code: Select all

15:03:50.870 -> Connected
15:03:51.335 ->
15:03:51.335 -> Sent
15:04:17.780 -> response
Please check your data again!