Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - youritronics

2
Web platform / Re: adding new functions to StackApplications()
thanks, I figured it out eventually. The trick is to add it to CustomHTTApp.c and then when you run the MPFS2 utility to generate your HTTPPrint.h file it will automatically add a case for calling the custom function.

Thanks anyway!
3
Web platform / adding new functions to StackApplications()
Hi,
I'm not sure if I got the subject of the topic right but here is what I want to do: After applying "Fixes for Microchip MDD Demo TCPIP Stack 5.31" I managed to compile the MDD Demo with C30 v3.21. I successfully enabled AN0 and I was able to show the reading on the web page through the existing HTTPPrint_pot() function from CustomHTTPApp.c. Now I would like to read a second channel AN1, and also send it to the webpage.

I believe these are the steps to do it:
1.create a new function in CustomHTTPApp.c for example HTTPPrint_pot1()
2.call that function in the StackApplications() so it runs in the loop once every tick (1 sec?)
3.edit status.xml to add the new variable for parsing
4.edit index.html to print the new variable

I am able to do steps 1,3,4 but I cannot find the place where I need to call my newly created function from.
Is it supposed to be called inside StackApplications() ? If so where is that defined ? because I couldn't find it..

Thanks,
Florin

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01182288072session_write_close ( )...(null):0
20.01212419648ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01212420424Database_MySQL->query( ).../DatabaseHandler.php:119
40.05682559144Database_MySQL->error( ).../Db-mysql.class.php:273