pubnub and nodemcuPubNub and NodeMcu

PubNub provides an easy to use interface for IoT enabled devices .PubNub and NodeMcu makes great pair to create IoT enbled embedded Devices.  It is simple Publish and Subscribe based protocol. Where any device can subscribe to any channel with subscribe key and could receive all messages published to that channel. On the other hand With simple REST Requests any device can also be a publisher to a specific channel and issue commands, data or any other information related to that channel. 

Here are some usefull resources to get started

Instructable example 

HTTPS REST Push API documentation

As we are only interested in last issued command so we can use this URL to access the last command issued by a publisher on our channel language: JavaScript (javascript)

We can test this in Developer Console provided by PubNub. Also we can access our own secret keys from PubNub via this admin pannel. 


To publish data over some channel you can use following URL
/messageCode language: PHP (php)

By Abdul Rehman

My name is Abdul Rehman and I love to do Reasearch in Embedded Systems, Artificial Intelligence, Computer Vision and Engineering related fields. With 10+ years of experience in Research and Development field in Embedded systems I touched lot of technologies including Web development, and Mobile Application development. Now with the help of Social Presence, I like to share my knowledge and to document everything I learned and still learning.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.