Use new DHCP Functionality

Hi All,

I just can’t get DHCP to run, I get the following error:

Code is as follows:

  
using System;
using System.Text;
using System.Threading;

using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;

using GHIElectronics.NETMF.FEZ;

using GHIElectronics.NETMF.Net;
using GHIElectronics.NETMF.Net.Sockets;
using GHIElectronics.NETMF.Net.NetworkInformation;

using Socket = GHIElectronics.NETMF.Net.Sockets.Socket;

public static class MySocketServer
{
    public static void Main()
    {
    
        byte[] mac = { 222, 173, 190, 239, 254, 237 };

        WIZnet_W5100.Enable(SPI.SPI_module.SPI1,
                            (Cpu.Pin)FEZ_Pin.Digital.Di10,
                            (Cpu.Pin)FEZ_Pin.Digital.Di9, true);

        NetworkInterface.EnableDhcp(mac, "domino");

Anyone got an idea?

Best regards,
Jeroen

It tells you to use new Dhcp class instead of NetworkInterface class

http://www.ghielectronics.com/beta_01979/Library%20Documentation/html/19c17dc5-e9ce-6497-425a-f330f7ffc1fe.htm

Thank you! It’s working now ;D

Did you get to the bottom of it? There is nothing in beta docs about not using NetworkInterface. Just curious.

The unused DHCP methods in NetworkInterface are going to be removed, in the next release.

Thanks Joe! Good to know.

Just curious,
Does the new dhcp functionality retrieves/updates the dns server information as well as the ip address/mask/gateway ?

[quote]Does the new dhcp functionality retrieves/updates the dns server information as well as the ip address/mask/gateway ?
[/quote]
Yes it does that.