Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

[HELP] Using uPLibrary to post to ThingSpeak


  • Please log in to reply
7 replies to this topic

#1 lifanek

lifanek

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationKatowice, Poland

Posted 05 February 2014 - 04:05 PM

Hi all!

 

Those are my first attempts to Netduino and internet communiation :)

 

I have followed this tutorial with success:

 

http://community.thi...and-thingspeak/

 

I've connected potentiometer to my Netduino and it was posting data and channel status to Thing Speak.

Everything is great about it, but I found out uPLibrary so what I did:

 

Updated to VS 2012 Express (on 2010ex I couldn't install Nuget).

Updated .Net, SDK and my N+ firmware.

After downloading Nuget and creating new project Ive typed in Nuget console Install-Package uPLibrary.

I wanted to give it a try so I re-writed firs code from here:

 

http://www.embedded1...k-platform.aspx

 

but I get strange error when I'm trying to debug it. Please help!

 

I've attached files with error and code screenshots.

 

BTW.: Are there any simple code examples for this uPLibrary? It is quite hard for a begginer to examine it on my own :) and the library is very interesting.

 

Thank You all in advance!

 

Attached Files



#2 Paolo Patierno

Paolo Patierno

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationItaly

Posted 06 February 2014 - 06:56 AM

Hi lifanek,

I'm happy that you are using my library ! ;-)

You are deploying more assemblies than the Netduino flash size. What assemblies are you referencing other than my uPLibrary ?

 

However, if you want to use only ThinkSpeak client, you can get source code client from CodePlex here : http://uplibrary.codeplex.com

In this way you don't include all the other library component.

 

However, before that, tell me referenced assemblies in you project and all the output window during the deploy (in the image I see only a part of this).

 

Paolo.


Paolo Patierno

Microsoft MVP on Windows Embedded & IoT

Azure Advisor

Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience

Blog : Embedded101
?


#3 lifanek

lifanek

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationKatowice, Poland

Posted 07 February 2014 - 07:07 PM

Hello Paolo,

thank You for reply - I have attached another screenshot - I hope there are all informations needed (too_big.png)

I also tried to create another blank project and added Your library manually by finding .dll file and it's also too big for Netduino :(

Maybe whole library is too big and I should use just a part of it?

 

If I would like to manually copy source code from CodePlex how should I do that? I gave it a try but with no success :(

 

Please take a look at library.png - maybe I missed something. Output.png shows the result of deploy attempt using library that I have created on my own from Your code on CodePlex - You can see there is something wrong but size of it is much much smaller :)

 

Many thanks for helping me out :)

 

L.

Attached Files



#4 Paolo Patierno

Paolo Patierno

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationItaly

Posted 08 February 2014 - 06:23 PM

Hi lifanek,

I think that the best solution is to post your Visual Studio solution so that I can open it on my PC.

 

Paolo.


Paolo Patierno

Microsoft MVP on Windows Embedded & IoT

Azure Advisor

Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience

Blog : Embedded101
?


#5 lifanek

lifanek

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationKatowice, Poland

Posted 09 February 2014 - 09:38 PM

Did You want to sent me those files or my program project?

Attached Files



#6 Paolo Patierno

Paolo Patierno

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationItaly

Posted 10 February 2014 - 08:10 AM

You sent me only ThingSpeak client source code that compiles and works fine.

Can you send me your program project that use the source code you sent me ? I think that the problem is there.


Paolo Patierno

Microsoft MVP on Windows Embedded & IoT

Azure Advisor

Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience

Blog : Embedded101
?


#7 lifanek

lifanek

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationKatowice, Poland

Posted 10 February 2014 - 08:59 AM

Hello Paolo!

 

I found an answer to my problem while I was writing to You my next message. It was trivial but it is all because I recently made some updates to .NET MF, VS and N+ firmware.

 

I made Your library in .NET 4.3 instead of using 4.2 because of those updates - after switching it back to 4.2 everythings fine now (Program was in 4.2)!

 

Still - many thanks for creating library and providing proffesional help!

Just have to remember one thing dataEntry.fields counts from 0 and ThingSpeak fields are from 1 what means

using dataEntry.fields[1] will update to channel 2.

 

I can't wait for trying out more posibilites of uPLibrary!

 

Thanks,

L.



#8 Paolo Patierno

Paolo Patierno

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationItaly

Posted 10 February 2014 - 09:04 AM

Great !!

 

Thank you very much to use my library !!

 

Paolo.


Paolo Patierno

Microsoft MVP on Windows Embedded & IoT

Azure Advisor

Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience

Blog : Embedded101
?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.