Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning IoT with Particle Photon and Electron

You're reading from  Learning IoT with Particle Photon and Electron

Product type Book
Published in Sep 2016
Publisher
ISBN-13 9781785885297
Pages 136 pages
Edition 1st Edition
Languages
Authors (3):
Rashid Khan Rashid Khan
Profile icon Rashid Khan
Kajari Ghoshdastidar Kajari Ghoshdastidar
Profile icon Kajari Ghoshdastidar
Ajith Vasudevan Ajith Vasudevan
Profile icon Ajith Vasudevan
View More author details

Setting up a P2P network for Particle devices


Out of the box, Particle boards run the stock firmware which integrates with the Particle cloud; thus, Particle devices are in the client-server mode when you buy them. It is not possible to set up a P2P network with the stock firmware shipped with Particle boards, and hence we need to flash a custom firmware onto the device, that supports the P2P protocol. VoodooSpark (https://github.com/voodootikigod/voodoospark) is a customized firmware build for Particle devices, which allows remote access of the firmware API using a TCP connection.

Flash the VoodooSpark firmware

The VoodooSpark firmware can be deployed very easily using the Web IDE at Particle Build (https://build.particle.io). Copy and paste the code available at https://raw.githubusercontent.com/voodootikigod/voodoospark/master/firmware/voodoospark.cpp in your Web IDE editor window, and click the Flash button (). This will burn the custom firmware onto your Particle Photon.

Connect the Particle...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}