Page 1 of 1
MOD54415 Web Server Errors
Posted: Tue Feb 12, 2013 10:39 am
by jediengineer
Hi all, is there some trick to calling functions or varialbles with the web server of the 54415 unit? I have the function UNIT_INFO called in my index.html file, I have the function declared in htmlvar.h, and defined in main.cpp. I followed the example in the WebVariables project as best as I could to try to replicate the function call, but I keep getting this error:
htmldata.cpp:214: error: 'UNIT_INFO' was not declared in this scope
Anyone got any idea as to why?
Re: MOD54415 Web Server Errors
Posted: Wed Feb 13, 2013 11:29 am
by jediengineer
Anyone?
Re: MOD54415 Web Server Errors
Posted: Wed Feb 13, 2013 1:38 pm
by Forrest
Hello,
Nothing changed with respect to function calls on the Web server on the MOD5441X device. Can you copy and paste your code both the html function call and the function in Cpp source into pastebin or gist so we can see your code? You don't need to copy and paste your entire project, just the relevant code
Re: MOD54415 Web Server Errors
Posted: Wed Feb 13, 2013 2:03 pm
by jediengineer
Re: MOD54415 Web Server Errors
Posted: Fri Feb 15, 2013 9:35 am
by Forrest
You code appears correct. Where did you place htmlvar.h? It needs to be in the html directory, not the project root.
Does the HTMLVariable example in examples/web/HTMLVariables work for you?
Re: MOD54415 Web Server Errors
Posted: Tue Feb 19, 2013 9:50 am
by jediengineer
I resolved this, thanks guys. @Forrest, I was informed that the htmlvar.h file needed to be in the project root. When I did that, it worked. When it was in the html folder, nothing worked. Confirm with dciliske, my ticket was resolved with him. Thanks!!