Hi, everyone I am getting an error that is telling me that connect does not existent when I have defined it at the bottom of the page as a Boolean method. i don't seem to know what the problem is.
#why an getting this error (The function “connect()” does not exist)
6 messages · Page 1 of 1 (latest)
Could you post a screenshot of where you declare tCaptured?
Is the conmect() method on the tCaptured object, or is it part of the sketch outside of any other class? Because it references tCaptured, which wouldn't exist if it was part of tCaptured's class. Try calling connect() instead of tCaptured.connect(), but don't forget to provide the method with a Topping variable like the method says it needs
the missing parameter that Loud Cat mentioned is likely the problem
there is a .connect(Topping) method, but there is no .connect() method. Java treats the different signatures as entirely different functions. It is very different from JavaScript, where this would be the same function (and you could provide it with more or less parameters than needed at your own peril)