Page 1 of 1

Show project is running on SBC2 web interface

Posted: Thu Apr 14, 2011 3:45 pm
by scottbeer
I've written an app in C to read 5 analogue sensor values each minute in an endless loop. I started the app using the start button on the web interface and its running fine but the web interface says the app is stopped. How do I get the web interface to correctly say the app is running?

Re: Show project is running on SBC2 web interface

Posted: Fri Apr 15, 2011 9:07 am
by Patrick
Can you tell me:

what is the app name, what are the arguments, and is it binary or Java?

I believe this is a bug we've been seeing, which will be fixed in a web interface update.

-Patrick

Re: Show project is running on SBC2 web interface

Posted: Fri Apr 15, 2011 9:21 am
by scottbeer
the app is called greenhouse.exe
Its a c++ binary with no arguments.

The app opens a connection to the 8/8/8 and then reads the sensor values every 60 secs using an endless loop and sleep()

How would the web interface stop the app running? Does it send a kill?

Re: Show project is running on SBC2 web interface

Posted: Fri Apr 15, 2011 9:25 am
by Patrick
Yes, it sends a kill (SIGTERM) - which you could handle in your program if you wanted. The problem is with how we detect that the app is running.

Can you tell me, the project name?

-Patrick

Re: Show project is running on SBC2 web interface

Posted: Fri Apr 15, 2011 9:49 am
by scottbeer
The project is just call 'greenhouse'.

Screenshot attached for info.

screenshot.jpg
Screenshot of Project Page
screenshot.jpg (47.52 KiB) Viewed 2162 times

Re: Show project is running on SBC2 web interface

Posted: Fri Apr 15, 2011 11:03 am
by Patrick
Ok, thanks for the info.

-Patrick