I’d like to know if I can use the WebServer (dll Gadgeteer.WebServer) class with FEZ Cerberus because when I try to start a web server it doesn’t run correctly.
If you are running a Cerberus with Ethernet firmware, this should not be a problem as I believe the WebServer uses system.net sockets. Firstly, I would await a valid IP address before attempting to start the webserver. Secondly, are you able to ping it normally before the WebServer is executed or are the results the same?
What James may have been hinting at is something like starting the web server on say something like a button press event, and seeing whether ping works before that in the same way, or if there’s any change in behaviour after you start the web server - is that like what you did?
Thanks Brett.
I checked my LAN and I discovered that the DHCP server was in fault.
After a power cycle of the DHCP server ping at the FEZ Cerberus has worked correctly.
Now I’ve a new strange issue always on FEZ Cerberus: I can’t deploy the project because the debugger can’t find aUSB device.
This is the VS2012 “output” window content:
it’s almost positively a tight loop in your code that doesn’t allow the debugger to attach to the board. a quick reset before you deploy (or while you are doing the deploy - but that can cause a PC crash in certain circumstances that you may not want to risk). Often all you need is a sleep(1) in your tight loop so that it allows it to give a slice to the debugger…