0

I have a moderately complex C program running on Linux, and I want to show some data from structures and some strings on a HTML page for live data presentation. I do have Boa Web Server running, but I can't think how to send the data to be displayed. Would I have to use CGI?

Thanks

user8351154
  • 89
  • 1
  • 4
  • 1
    Add more tags if possible. There could be people that can answer your question looking for [boa] – flmng0 Oct 24 '17 at 21:39
  • Why do you need Web Server for that? – c-smile Oct 24 '17 at 21:45
  • I don't really need the Web Server, but I want to show the data on a HTML webpage using a web browser. – user8351154 Oct 24 '17 at 21:50
  • Web browser can open local HTML files, and so it can poll for data in them. Do you need exactly Web Browser to show your data, BTW? – c-smile Oct 24 '17 at 21:53
  • @c-smile Yes, needs to be able to be viewed from a web browser. Thinking how I can dump the data to be put into a HTML file easily. I was thinking of showing the data and values in HTML tables for example. – user8351154 Oct 24 '17 at 21:58
  • @c-smile Wouldn't constantly changing the data maybe once a second, in the file, hammer the flash memory or hard drive this file resides on? – user8351154 Oct 24 '17 at 22:00
  • To use Sciter or Electron then. With Sciter your program can just show HTML window that you can update from your native code. Or by sending events to the script on the page. Using Web Browser / Web Server is not an option either if you worry about flash memory - too many things happen, file cached etc. – c-smile Oct 24 '17 at 22:08
  • @c-smile This is an embedded system so limited on memory and RAM. I believe those frameworks need like 10MB or more. I only have 3 MB Free of RAM and FLASH space – user8351154 Oct 24 '17 at 22:32
  • Finally we are getting somewhere. So your browser is not running on the same machine? If so then you have two options: poll your server from browser with some interval for the data or to use something like WebSockets so you can push data from your app to the browser connected to your server. – c-smile Oct 24 '17 at 22:52

0 Answers0