How to Connect through TCP/IP to Google AppEngine Sandbox

64 views
Skip to first unread message

Raghu rao

unread,
Apr 24, 2014, 7:23:41 AM4/24/14
to google-a...@googlegroups.com
Hi,

Pls let us know how to communicate between an embedded application(micro-controller based  small firm factor device- firmware driven)to Google App Engine app through TCP/IP. is it possible to create any listen socket in Google App Engine Sand box Environment. 

Regards,
Raghu Nandan.H

Barry Hunter

unread,
Apr 24, 2014, 7:45:09 AM4/24/14
to google-appengine
In short: no. 

Can only contact a appengine instance, via HTTP. Although there are a few convenience services that will turn other communications into a HTTP message, so can react on Appengine. 

If you truely want to receive non HTTP messages, AppEngine is almost certainly not the right place. 

Could perhaps use Compute Engine instead, which gives you a fairly tranditional Virtual Machines, these could open listening sockets. 

Or could have a hybrid solution, a 'front end' that receives messages as required, and dispatches HTTP messages to your appengine application (to do what ever with). 



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Vinny P

unread,
Apr 24, 2014, 1:04:50 PM4/24/14
to google-a...@googlegroups.com
On Thu, Apr 24, 2014 at 6:23 AM, Raghu rao <raghu...@gmail.com> wrote:
Pls let us know how to communicate between an embedded application(micro-controller based  small firm factor device- firmware driven)to Google App Engine app through TCP/IP. is it possible to create any listen socket in Google App Engine Sand box Environment. 


As Barry said, there's no way to open up listening sockets on App Engine.

But some microcontrollers have enough space to host a tiny web server (see this SO post for examples); what you can do is run a web server on your device, then have App Engine periodically poll the server for data.
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Barry Hunter

unread,
Apr 25, 2014, 12:51:39 PM4/25/14
to google-appengine

But some microcontrollers have enough space to host a tiny web server (see this SO post for examples); what you can do is run a web server on your device, then have App Engine periodically poll the server for data.


If the device is big enough to run a webserver, surely it would be big enough to run a HTTP client :) 

Vinny P

unread,
Apr 25, 2014, 2:22:28 PM4/25/14
to google-a...@googlegroups.com

On Friday, April 25, 2014 11:51:39 AM UTC-5, barryhunter wrote:
If the device is big enough to run a webserver, surely it would be big enough to run a HTTP client :) 



Go big or go home, that's what I always say :-). More complex = more fun tinkering! 
Reply all
Reply to author
Forward
0 new messages