using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
using EPI.Net;
namespace FEZ_Cobra_Console_Application1
{
public class Program
{
public static string endPoint = "http://192.*********/webservice.asmx";
public static int i = 1;
public static void Main()
{
while (true)
{
EfficientPutRequest Servicio = new EfficientPutRequest(endPoint);
Servicio.SendRequest(System.DateTime.Now, 17, 17, 0, "");
Debug.Print(i.ToString() + " sent");
i++;
Thread.Sleep(1000);
}
}
}
}
Yes I do, I’ve set up:
[ol]Static IP address
Subnet Mask
Default Gateway
MAC Address (the same that comes by deffault)
DNS Primary Address[/ol]
No DNS Secondary Address (0.0.0.0)
DHCP Disabled.
now I see Im miss that info…
Please be shure that AFTER each creating Socket you also CLOSE it!!! You can’t leave Socket opened. This is reason that you receiving errors…
This error is returned from operations on nonblocking sockets that cannot be completed immediately, for example recv when no data is queued to be read from the socket. It is a nonfatal error, and the operation should be retried later. It is normal for WSAEWOULDBLOCK to be reported as the result from calling connect on a nonblocking SOCK_STREAM socket, since some time must elapse for the connection to be established.
I also have a timer in my app, but after some time. VS show me this:
[quote]GC: 364msec 385548 bytes used, 12655500 bytes available
Type 0F (STRING ): 38136 bytes
Type 11 (CLASS ): 78444 bytes
Type 12 (VALUETYPE ): 4788 bytes
Type 13 (SZARRAY ): 213480 bytes
Type 15 (FREEBLOCK ): 12655500 bytes
Type 16 (CACHEDBLOCK ): 216 bytes
Type 17 (ASSEMBLY ): 22248 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 24 bytes
Type 1B (DELEGATE_HEAD ): 504 bytes
Type 1D (OBJECT_TO_EVENT ): 408 bytes
Type 1E (BINARY_BLOB_HEAD ): 192 bytes
Type 1F (THREAD ): 3072 bytes
Type 20 (SUBTHREAD ): 240 bytes
Type 21 (STACK_FRAME ): 3084 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 27 (FINALIZER_HEAD ): 18024 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 2256 bytes[/quote]
And timer stop working, but sockets are send without problem. Could this be related? Any idea?
Thanks!!!