Chapter 3.  P2P and Local Server

In this chapter, you will be introduced to the two following popular network architectures for data transmission or communication between devices:

  1. Client-server
  2. Peer-to-peer (P2P)

You will also learn how to use these architectures in the Particle ecosystem.

We will develop a P2P application using Cylon.js (, a Javascript framework for robotics, physical computing, and IoT, to control our Particle device and an onboard LED with the keyboard. We will then describe how to set up the Particle server on your local machine for fast transmission of data across various devices, and we will end the chapter with a brief introduction to other protocols used in the IoT sphere.

The topics covered in this chapter ...

Get Learning IoT with Particle Photon and Electron now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.