Google Cloud messaging without external server

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
beegee
New user
Posts: 3
Joined: 03 Dec 2015, 14:56
Location: Manila, Philippines
Contact:

Google Cloud messaging without external server

#1 Post by beegee » 03 Feb 2016, 03:13

I was looking into a solution to send push notifications from an ESP8266 module to an Android application. I know that this is possible with the Google Cloud Messaging service.

But what I found on the internet is using an external webserver, able to run PHP (or Python) scripts and using a MySQL server to store registration IDs.
Image Image
So far so good, but why do I need to setup an external server with MySQL and PHP just to send messages to the Android devices. The ESP8266 has server capabilities build-in and has enough storage to save registration IDs in the Flash memory.
What I wanted is:
Image Image

As I could not find any tutorial or example on the Internet how to achieve this, I started to write the code by myself.
And here is the result:
ESP8266 - Google Cloud Messaging without external server
Of course the code is open source and stored in my Github repository

Hope it helps someone.

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 11 guests