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

Netduino & PHP communication


  • Please log in to reply
3 replies to this topic

#1 turncoat

turncoat

    New Member

  • Members
  • Pip
  • 2 posts

Posted 16 March 2011 - 05:11 PM

Hi, I'm new to the Netduino and I'm starting a small project. I'm programming some LEDs in Visual Studio with a dim function. This all works very well. Now I want to make a website in PHP that will send data to the .NET program on the Netduino. So I can remote-access the LEDS and dim them. I wonder how I can send data via php to the Netduino and handle it. Hope someone can help me out with this, Take care,

#2 Easter

Easter

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationIndiana

Posted 16 March 2011 - 05:37 PM

Hi,
I'm new to the Netduino and I'm starting a small project. I'm programming some LEDs in Visual Studio with a dim function. This all works very well. Now I want to make a website in PHP that will send data to the .NET program on the Netduino. So I can remote-access the LEDS and dim them.

I wonder how I can send data via php to the Netduino and handle it. Hope someone can help me out with this,


Take care,


Are you using a Netduino or a Netduino Plus?

#3 turncoat

turncoat

    New Member

  • Members
  • Pip
  • 2 posts

Posted 16 March 2011 - 05:51 PM

I'm using both. connected via the serial ports. So i have the netduino plus so I could use the Ethernet port I thought about creating a url in C# with all the values and I could access these values with a simple GET, but this has to be bi-directional. So that I can change settings on the php website and use them on the Netduino.

#4 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 16 March 2011 - 07:00 PM

I'm using both. connected via the serial ports. So i have the netduino plus so I could use the Ethernet port
I thought about creating a url in C# with all the values and I could access these values with a simple GET, but this has to be bi-directional. So that I can change settings on the php website and use them on the Netduino.

Sounds like you are trying to do something similar to what I have been doing with Silverlight and a simple web server with the N+. I've put a couple of posts up here which you might find useful:

Silverlight talking to a simple web server on the Netduino

NE555 Calculator and Silverlight

You could also do a search on REST web services as there have been a few posts here which might also be useful.

Hope this helps,
Mark

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter





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.