I know C but object oriented C++ is not my strong side yet. :-[
I'm trying to use class Serial from this page
arduino.cc/playground/Interfacing/CPPWindows
I can do
...
Serial::Serial((char *)"COM6");
but I can't instantiate new object for the WriteData that is a dynamic member of Serial class..
Serial *Serauto;
Serial *Serdynamic = new Serial;
Serial::Serial((char *)"COM6"); // THIS HERE IS OK.
if(Serdynamic->WriteData("7",1)) // THIS IS NOT OK!
{
//alles ok
}
ERROR: ...mainwindow.cpp:70: error: no matching function for call to 'Serial::Serial()'
How must the object be instantiated so that it can be used to send character??
There is no fully working example that uses this SerialClass...
Let's make one now?