- Netduino Forums
- → Viewing Profile: Topics: gordon128
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.
Community Stats
- Group Members
- Active Posts 9
- Profile Views 3917
- Member Title New Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Friends
gordon128 hasn't added any friends yet.
Topics I've Started
string to int's
06 June 2011 - 05:27 PM
I want to take a string that has a series on numbers separated by commas,
like: string mystring = "1234,34,26,6,1,0";
and extract those numbers into a number of integers,
like: int a, int b, int c, int d, int e, int f ....etc.
or into an array -> int[1 to x] numbers;
Can any one give an example of possible code?
Regards Gordon
Help - Addressing a port from a variable
04 June 2011 - 11:59 AM
Hello fellow N+'s
I'm new to this stuff, but my first home automation is on it's way.
I have programmed some time ago in C++, but not to good with C# and Micro Framework.
I have been trying to address digital I/O ports with variables e.g.
// Read status of all Ports.
using a "for i loop"
portstatus[i] = portname[i].Read();
The above line doesn't work so I've had to type every port on a separate line:
portstatus[0] = led0.Read();
portstatus[1] = led1.Read();
portstatus[2] = led2.Read();
etc.
Can any body help on this matter?
Regards Gordon
I'm new to this stuff, but my first home automation is on it's way.
I have programmed some time ago in C++, but not to good with C# and Micro Framework.
I have been trying to address digital I/O ports with variables e.g.
// Read status of all Ports.
using a "for i loop"
portstatus[i] = portname[i].Read();
The above line doesn't work so I've had to type every port on a separate line:
portstatus[0] = led0.Read();
portstatus[1] = led1.Read();
portstatus[2] = led2.Read();
etc.
Can any body help on this matter?
Regards Gordon
Netduino Plus webserver Help
28 May 2011 - 08:40 PM
Hello fellow N+'s
Code taken from: http://www.schuurmans.cc/tag/webserver
I’ve use the code to do with this article and it does the job I’m looking for.
How ever, I send a request to the server and all works OK. When I go to send another request a little later, it is as though the server has frozen. The only thing I can do is to re-boot the Netduino Plus. Below are the debug reports:
===========debug report===========
#### Exception System.NullReferenceException – CLR_E_NULL_REFERENCE (5) ####
#### Message:
#### Blinq.Netduino.Web.WebServer::InterpretRequest [IP: 0007] ####
#### Blinq.Netduino.Web.WebServer::StartServer [IP: 0059] ####
A first chance exception of type ‘System.NullReferenceException’ occurred in Blinq.Netduino.dll
An unhandled exception of type ‘System.NullReferenceException’ occurred in Blinq.Netduino.dll
===========webserver.cs highlighted lines below===========
// Remove GET + Space
string commandData = rawData.Substring(5, rawData.Length – 5);
// Convert to string, will include HTTP headers.
string rawData = new string(Encoding.UTF8.GetChars(bytes));
WebCommand command = InterpretRequest(rawData);
Code taken from: http://www.schuurmans.cc/tag/webserver
Please can anyone help on this matter.
Regards Gordon
- Netduino Forums
- → Viewing Profile: Topics: gordon128
- Privacy Policy