I'm programming a simple web server on an Arduino. I basically send HTML, CSS and Javascript to a client through a method in C code. Now I've come to need a C variable in a Javascript if-case, and I need to do it without using ASP.NET.
client.println("if (%c == 1) {",stat[0]);
I tried changing the data type, I tried using a Java-style with plus signs, I even tried storing it in a string first and then sending it in; nothing works.
stat[0] is declared and changes over time.
The error I get from the compiler:
Webserver4.cpp:217:40: error: call of overloaded 'println(const char [15], byte&)' is ambiguous C:\mpide-0023-windows-20111221\hardware\pic32\cores\pic32/Print.h:66:7: note: candidates are: void Print::println(char, int) (...)
Any ideas?
if (%c == 1)
? – thumbmunkeys May 8 '12 at 8:09==
. Arguably, though, since this is Javascript it would be better to be===
... – Matthew Murdoch May 8 '12 at 13:02