HelloXively for Netduino Plus 2 (NETMF 4.2)

As Pachube has been renamed to Cosm and then to Xively, the question has come up what changes are needed for the examples. Fortunately very few! Thanks to Tony Scarpelli for putting a new version together and testing it! Here is the HelloXively sample, together with the library (now called Gsiot.XivelyClient) in a single Visual Studio project:

Visual Studio 2012 project with HelloXively and Gsiot.XivelyClient for Netduino Plus 2 (NETMF 4.2)
XivelyTest.zip
Compressed Archive in ZIP Format 77.3 KB

Write a comment

Comments: 5
  • #1

    Darren Hopkins (Saturday, 10 May 2014 21:10)

    Running the sample from this site yielded the following result in my output window. I know the download you provided says it is for NETMF 4.2 (which I am running), but I don't know why it is looking for version 4.3.0.0 of the following referenced assemblies. Can you help?

    "Assembly: Gsiot.XivelyClient (1.0.0.0) needs assembly 'mscorlib' (4.3.0.0)
    Assembly: Gsiot.XivelyClient (1.0.0.0) needs assembly 'System.Http' (4.3.0.0)
    Assembly: Gsiot.XivelyClient (1.0.0.0) needs assembly 'Microsoft.SPOT.Native' (4.3.0.0)"

  • #2

    Cuno Pfister (Sunday, 11 May 2014 19:49)

    Hi Darren
    From which link exactly did you download the samples?
    When you open them in Visual Studio and right-click on a project, e.g. Hello World, select the "Properties" menu entry, and then navigate to the "Application" tab, what does it say in the list box "Target framework:"? If it says 4.3, can you change it to 4.2 and then execute the "Rebuild Solution" command in menu "BUILD"?

  • #3

    Darren (Sunday, 18 May 2014 20:38)

    I've discovered my error. I had inadvertantly added the reference to "Gsiot.XivelyClient.dll", which I may have downloaded from another link on your blog meant for NETMF 4.3. I correctly added the code file "Gsiot.XivelyClient.cs" using "Add...Existing Item..." (in Visual Studio Express 2010) to the project after placing the Gsiot.XivelyClient source file into the project folder. All is working now and the Xively website is correctly receiving my PUT requests.

  • #4

    Lakshminarayan (Tuesday, 07 April 2015 11:19)

    How to get the free xively account signup?
    need quick guidance.
    Since pachube is changed to cosm and to xively

  • #5

    Lakshminarayan (Saturday, 18 April 2015 17:40)

    How to create feed in the xively.com?
    How can i get the feed id?

Companion Web site for the book
Getting Started with the Internet of Things
By Cuno Pfister
Publisher: O'Reilly Media