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!
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!
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
);
}}}
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.
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.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
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!