Show project is running on SBC2 web interface

C, C++, and Visual C++
scottbeer

Show project is running on SBC2 web interface

Postby scottbeer » Thu Apr 14, 2011 3:45 pm

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?

User avatar
Patrick
Lead Developer
Posts: 3176
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Show project is running on SBC2 web interface

Postby Patrick » Fri Apr 15, 2011 9:07 am

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

scottbeer

Re: Show project is running on SBC2 web interface

Postby scottbeer » Fri Apr 15, 2011 9:21 am

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?

User avatar
Patrick
Lead Developer
Posts: 3176
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Show project is running on SBC2 web interface

Postby Patrick » Fri Apr 15, 2011 9:25 am

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

scottbeer

Re: Show project is running on SBC2 web interface

Postby scottbeer » Fri Apr 15, 2011 9:49 am

The project is just call 'greenhouse'.

Screenshot attached for info.

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

User avatar
Patrick
Lead Developer
Posts: 3176
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Show project is running on SBC2 web interface

Postby Patrick » Fri Apr 15, 2011 11:03 am

Ok, thanks for the info.

-Patrick


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 3 guests