Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learning IoT with Particle Photon and Electron

You're reading from   Learning IoT with Particle Photon and Electron Develop applications on one of the most popular platforms for IoT using Particle Photon and Electron with this fast-paced guide

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher
ISBN-13 9781785885297
Length 136 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Kajari Ghoshdastidar Kajari Ghoshdastidar
Author Profile Icon Kajari Ghoshdastidar
Kajari Ghoshdastidar
Ajith Vasudevan Ajith Vasudevan
Author Profile Icon Ajith Vasudevan
Ajith Vasudevan
Arrow right icon
View More author details
Toc

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 (Flash the VoodooSpark firmware). 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 $19.99/month. Cancel anytime
Banner background image