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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.