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

N+2 communication with WebApi


  • Please log in to reply
9 replies to this topic

#1 grey

grey

    Member

  • Members
  • PipPip
  • 12 posts

Posted 26 June 2013 - 05:54 AM

Hello to all, I want to show you my first adwanced project. Three components communicate with each other: a website, the Netduino and a WebAPI. The Netduino and the site can communicate in both directions. look at the video :)  

if there is interest on the code, I need to beautify it first before I put it in here.



#2 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 26 June 2013 - 12:34 PM

Nice, is it an Android phone and did you write the app for it?



#3 grey

grey

    Member

  • Members
  • PipPip
  • 12 posts

Posted 27 June 2013 - 08:52 AM

Nice, is it an Android phone and did you write the app for it?

 

 Hi. Yes it is an Android phone, but i have not written an app. This is a website thas is accessed via the browser.



#4 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 27 June 2013 - 11:01 AM

Ah yes, silly me - I see now that you got the same webpage open in the browser of your PC.



#5 mcinnes01

mcinnes01

    Advanced Member

  • Members
  • PipPipPip
  • 325 posts
  • LocationManchester UK

Posted 13 August 2013 - 07:21 PM

I would love to see your code including the web api? Are you using signalR to update your page?



#6 nakchak

nakchak

    Advanced Member

  • Members
  • PipPipPip
  • 404 posts
  • LocationBristol, UK

Posted 14 August 2013 - 11:01 AM

I would love to see your code including the web api? Are you using signalR to update your page?

Its quite easy into interface ND's to MVC/WebAPI the biggest problem is keeping the data you send and receive very terse to the ND so as to minimise the amount of string operations that need to be done on the ND.  in the past i have done things like hard code the action names as constants on the nd, then using a RESTful API sent the bare minimum of data to and from the ND.

One trick i used to minimise data being sent over the wire was to use the ND's MAC address as its unique identifer so i could target any given ND on the network.

 

I also keep meaning to have another crack at writing a SignalR client for NetMf (there is the start of one in the SignalR repo on GitHub).

 

Nak.



#7 grey

grey

    Member

  • Members
  • PipPip
  • 12 posts

Posted 14 October 2013 - 12:32 PM

Hello Guys,

 

i have created a new Video and uploaded the corresponding Code.

You can download the Code from my Blog.

http://homeautomatio...o-mit-code.html

 

Grey

 



#8 mcinnes01

mcinnes01

    Advanced Member

  • Members
  • PipPipPip
  • 325 posts
  • LocationManchester UK

Posted 14 October 2013 - 12:47 PM

Hi the link to the netduino code is broken?

#9 grey

grey

    Member

  • Members
  • PipPip
  • 12 posts

Posted 14 October 2013 - 12:51 PM

Hi the link to the netduino code is broken?

 

i fixed it. now it should work.

sorry!



#10 Frode

Frode

    Advanced Member

  • Members
  • PipPipPip
  • 202 posts
  • LocationNorway

Posted 18 October 2013 - 05:20 PM

Very cool, grey!






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.