I have a very simple routine that gets the IP address of the Netduino Plus and prints it to the serial port.
LocalIP=Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces(0).IPAddress
buffer=System.Text.Encoding.UTF8.GetBytes(LocalIP)
Serial1.Write(buffer,0,buffer.length)
The IP address of the Netduino is 192.168.0.31.
The routine above sends 192.168.0.3 with a trailing space.
Running through the routine step by step shows that LocalIP is correct at 192.168.0.31, buffer is correct, is 12 characters long and ends in a decimal 49 (representing the 1) but the one is missing from the actual serial output.
Any ideas?
Glen