PubNub with WizFi250

/PubNub with WizFi250
PubNub with WizFi2502018-08-01T13:42:12+00:00

Project Description

This tutorial explains how you can connect WizFi250 with PubNub, one of the most popular cloud service.

PubNub provides a cloud service for IoT devices. Just by registering PubNub, you can connect your device to the Internet for real time monitoring.

pubnub-1

 

After finishing registration, you can create an APP. As shown in below figure, we created ‘WizFi250-demo’ App for the testing.

pubnub-2

You must remember <Publish Key> and <Subscribe Key>. We will use them when WizFi250 tries to connect to the service.

If you select  <Quick Links> => <Debug Console>, a testing console will be displayed.

pubnub-3

 

After finishing the setting, we will perform channel testing using web browser. This testing is to call the RESTful API at the web browser and check if the value correctly arrives at the channel of PubNub

Call the below address by inputting below address in the URL of web browser.

http://pubsub.pubnub.com/publish/pub-c-34a73e4e-51d6-41d6-a0d1-83c7fa5xxxxx/sub-c-6d25288a-b26d-11e4-8fcd-0619f89xxxxx/0/WizFi250-channel/0/”test-message”

You must input exact key value in the part of “pub-c….” and “sub-c-…..”

“test-message” is the real data to be transmitted to the channel.

If there is no problem, you can see below.

pubnub-5

 

If you go to the Debug Console of the PubNub, you can see the “test-message” at the WizFi250-Channel.

Now, we are going to transmit the data to PubNub from WizFi250. We will send “value-1”, “value-2” and “value-3” data to WizFi250-demo channel.

For this testing, we removed redundant HTTP header and used below data (167 Byte, be careful of CR & LF)

 

The file “Pubnub-test.txt” shows real data transmitted.

WizFi250 operates as below log.

 

Whenever WizFi250 sends the data (value-1, value-2, value-3), you can see the changed data at the PubNub channel.

pubnub-7

 

 [/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]

Leave a Reply