mbed and apache

02 Aug 2011

Hello everbody

I'm new to mbed and I try to connect my mbed to my apache server running on linux.

Can anyone tell me what I need to know to handle the webserver and how I'm able to send data from the webserver to the mbed?

thanks!

02 Aug 2011

Hi

You can try this example code

http://mbed.org/users/donatien/programs/HTTPClientExample/5ze8l/docs/HTTPClientExample_8cpp_source.html

In example the ethernet of mbed will get IP from DHCP server

EthernetNetIf eth; 

but you can config to fix ip by change as following

EthernetNetIf eth(
    IpAddr(192,168,1,5), //IP Address
    IpAddr(255,255,255,0), //Network Mask
    IpAddr(192,168,1,1), //Gateway
    IpAddr(192,168,1,1)  //DNS
);

03 Aug 2011

hi

thanks a lot!

03 Aug 2011

and do you know how to send data from the apache website to the mbed? I have a checkbox on the website and I want to send an event to the mbed if the checkbox is clicked.