In this chapter, you will be introduced to the two following popular network architectures for data transmission or communication between devices:
Client-server
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 (https://cylonjs.com/), 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 are as follows:
Client-server versus P2P networks
Setting up a P2P network for Particle devices
Local server setup
Alternate protocols for IoT