10 years, 1 month ago.

FSHandler in HTTP server?

Hi guys. How does this code work? It confused me. I'm reading at http://mbed.org/users/kadams6/notebook/lab3/ Web root directory FSHandler::mount("/fs", "/");

Bind the filesystem handler for all requests server.addHandler("/"); "/" matches every URL server.bind(80); listen port

Ticker ledTicker; ledTicker.attach(&flipLed, BLINK_RATE);

pollSensors();

Ticker pollTicker; pollTicker.attach(&pollSensors, SENSOR_POLL_RATE);

Listen indefinitely while(true) { Net::poll(); }

return 0;

anyone can help me?

posted by Duc Viet Pham 28 Mar 2014

help me, pls

posted by Duc Viet Pham 03 Apr 2014
Be the first to answer this question.