element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Internet of Things
  • Technologies
  • More
Internet of Things
Documents [IoT]Xively Demo with WizFi250
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: main8096
  • Date Created: 17 Nov 2014 9:30 PM Date Created
  • Last Updated Last Updated: 17 Nov 2014 9:34 PM
  • Views 559 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

[IoT]Xively Demo with WizFi250

Xively Demo with WizFi250

image

 

Let me introduce the “Xively server and WizFi250 application note.

 

In order to Test, the customer should make a Xively ID and acquire Channel and API key.

 

(For more information about the Xively, Please check the Youtube or Google)

 

 

 

This test environment is as below

 

•Feed ID : 1805123826

 

•X-ApiKey : H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM

 

•Channel : Demo

 

 

 

Test Procedure

 

(A) The local data save to Xively Cloud

 

(B) The Data receive form Xively Cloud

 

 

 

Let’s start Demo

 

 

 

  (A) Request Raw Data: the temporary 4 byte data save to Xively cloud

 

PUT /v2/feeds/1805123826/datastreams/Demo HTTP/1.1\r\n

Host: api.xively.com\r\n

X-ApiKey: H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM\r\n

Content-Length:81\r\n

\r\n

{\r\n

  "id": "Demo",\r\n

  "tags": [],\r\n

  "unit": {},\r\n

  "current_value": "4"\r\n

}\r\n

\r\n

\r\n

 

(Total 236 Byte)

 

 

 

(B) Request Raw Data : The Data receive form Xively cloud

 

GET /v2/feeds/1805123826/datastreams/Demo HTTP/1.1\r\n

Host: api.xively.com\r\n

X-ApiKey: H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM\r\n

\r\n

 

(Total 136 Byte)

 

 

 

In order to use Xively server communication, you should associate with AP.

 

(It is depends on your test AP environment. Therefore we omission this parts.

 

Please refer to as below link

 

http://wizwiki.net/wiki/doku.php?id=products:wizfi250:wizfi250pg:start

 

(“Examples - Association & Disassociation” part)

 

u  Step #1: Obtain the Xively API sever IP

 

AT+FDNS=api.xively.com,3000

64.94.18.120

[OK]

 

u  Step #2:   Access the the Xively API sever, and then send the Request command that save the value “4” in the Channel Demo

 

AT+SCON=O,TCN,64.94.18.120,80,,0

 

[OK]

 

[CONNECT 0]

 

AT+SSEND=PUT /v2/feeds/1805123826/datastreams/Demo HTTP/1.1\r\n

 

Host: api.xively.com\r\n

 

X-ApiKey: H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM\r\n

 

Content-Length:81\r\n

 

\r\n

 

{\r\n

 

  "id": "Demo",\r\n

 

  "tags": [],\r\n

 

  "unit": {},\r\n

 

  "current_value": "4"\r\n

 

}\r\n

 

\r\n

 

\r\n

 

[OK]

 

 

 

If you send correctly a data, you should be receive from the Xively API server

 

{0,64.94.18.120,80,251}HTTP/1.1 200 OK

 

Date: Wed, 06 Aug 2014 03:52:05 GMT

 

Content-Type: application/json; charset=utf-8

 

Content-Length: 0

 

Connection: keep-alive

 

X-Request-Id: 65d5981411f55879f102ebd8df82e4c2978cfac1

 

Cache-Control: max-age=0

 

Vary: Accept-Encoding

 

 

 

u  STEP #3: Close the connection the Xveily API Sever

 

AT+SMGMT=ALL

 

[DISCONNECT 0]

 

[OK]

 

 

 

when you see the Feed Channel, you should find a data to apply real time in Xively API server.

 

https://xively.com/feeds/1805123826

image

 

Next, we’re trying to get the data from Xively cloud server.

 

Refer to as below command

 

AT+SCON=O,TCN,64.94.18.120,80,,0

 

[OK]

 

 

 

[CONNECT 0]

 

AT+SSEND= GET /v2/feeds/1805123826/datastreams/Demo HTTP/1.1\r\n

 

Host: api.xively.com\r\n

 

X-ApiKey: H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM\r\n

 

\r\n

 

[OK]

 

{0,64.94.18.120,80,441}HTTP/1.1 200 OK

 

Date: Wed, 06 Aug 2014 03:52:18 GMT

 

Content-Type: application/json; charset=utf-8

 

Content-Length: 122

 

Connection: keep-alive

 

X-Request-Id: 749920b4abcd6c4f6953906d14b4204002ae42be

 

Cache-Control: max-age=86400

 

X-Licence: http://creativecommons.org/publicdomain/zero/1.0/

 

Vary: Accept-Encoding

 

 

 

{"id":"Demo","current_value":"4","at":"2014-08-06T03:52:05.847187Z","max_value":"7.0","min_value":"0.0","version":"1.0.0"}

 

AT+SMGMT=ALL

 

 

 

[DISCONNECT 0]

 

[OK]

 

 

 

Notice:

 

Please refer to as below link.

 

This link explain How to connect between the temperature sense and the Xively API sever

 

http://wizwiki.net/blog/2014/03/19/arduino-temperature-monitoring-system-using-xively-server-wizfi250-evb/
  • xively
  • things
  • of
  • wizfi250
  • internet
  • wi-fi
  • iot
  • wiznet
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube