Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Getting Started with PubNub and Particle.io Devices

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
2,544
Language
English
Hacker News Points
-
Summary

Particle's Photon is a compact, cloud-compatible board designed for makers who seek seamless cloud integration for their projects. The tutorial outlines how to set up the Photon with PubNub to publish messages and subscribe to channels, highlighting its ease of use compared to Arduino due to its intuitive cloud integration and a different IDE. Setup can be done via a computer or mobile app, but integration with PubNub requires using Particle's online IDE. Key steps include installing Node.js and Particle's CLI, setting up the device to connect to WiFi, and importing libraries for use in Particle sketches. The process for publishing and subscribing to PubNub channels is similar to Arduino, although in Particle, a TCPClient is used instead of a WiFi or Ethernet client. Debugging can be challenging due to the lack of a console in the IDE, but using safe mode and PubNub's Developer Console can help troubleshoot issues. Once familiar with the Photon, users can expand their projects by trying Particle's other Arduino-compatible boards for various IoT applications.