A device?...As in a peripheral? Or software?

So basically you're trying to make the XPe machine a web server and just connect to it. In that case, why don't you just have the C++ app run as a service too. It can update a file on the local disk (same directory as the flot library HTML file). Then the HTML page which has the flot library can use AJAX to query the results.