HTTPClient setting IP-Address

31 May 2010

Hallo all,

I use the HTTPClient but every time when i set a IP-Address like it is shown in the trunk.

after the first time I connect to a page the programm stops. The device is answer a ping.

I don't think its my program, because when it gets a Address by DHCP everythin is ok.

My HTTPClient

HTTPClient http("MF6-1_LTS",
IPv4(192,168,2,87),
IPv4(255,255,255,0),
IPv4(192,168,2,1),
IPv4(192,168,2,1)
);

whats wrong?

 

Michael Baumhof

01 Jun 2010

DNS Setup?

04 Jun 2010

I don´t know.

with dhcp i get this result ( modified IVA2k_ethrpc program):

MBED HTTPServer "MF6-1_MPT" started
MAC 00:02:F7:F0:14:0E
IP: 192.168.2.35

GW: 192.168.2.1
DNS: 192.168.2.1
nm: 255.255.255.0

with

HTTPServer http(hostname,         
IPv4(192,168,2,88),       // ip-adresse
IPv4(255,255,255,0),        // netmask
IPv4(192,168,2,1),          // gateway
IPv4(217,0,43,129)          // dns DTAG or (IPv4(192,168,2,1)
);    //
i get

HTTP

MBED HTTPServer "MF6-1_MPT" started
MAC 00:02:F7:F0:14:0E
IP: 192.168.2.88

IP: <link down>
GW: 192.168.2.1
DNS: 208.67.222.222
nm: 255.255.255.0

but i can ping and put data in the MBED

http://192.168.2.88/rpc/myrpc1/blink,10

an it blinks 10 times as wished