O'Reilly logo

Making Things Talk, 2nd Edition by Tom Igoe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Communicating in (Near) Real Time

image with no caption

Musicbox by Jin-Yo Mok (2004)

The music box is connected to a composition program over the Internet using a serial-to-Ethernet module. The composition program changes the lights on the music box and the sounds it will play. Real-time communication between the two gives the player feedback. Photo courtesy of Jin-Yo Mok.

So far, most of the networked communications you’ve seen worked through a web browser. Your object made a request to a remote server, the server ran a program, and then it sent a response. This transaction worked by making a connection to the web server, exchanging some information, and then breaking the connection. In this chapter, you’ll learn more about that connection, and you’ll write a server program that allows you to maintain the connection in order to facilitate a faster and more consistent exchange between the server and client.

Supplies for Chapter 5

DISTRIBUTOR KEY

PROJECT 8: Networked Pong

Note

You’ll see two devices you can build in this chapter. If you plan to build both, double the quantities on all parts except ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required