|
Post by mcirkovic on Nov 22, 2017 19:19:05 GMT
Hi all, trying to compile the ethernet gateway arduino sketch and when I try, I get an error saying...
gateway_ethernet:28: error: 'callback' was not declared in this scope
PubSubClient client(server, 1883, callback, ethClient);
^
exit status 1
'callback' was not declared in this scope
Anyone else run into this? Thanks!
|
|
|
Post by greginkansas on Nov 23, 2017 12:34:05 GMT
Have you installed the PubSubClient lib?
|
|
|
Post by papa on Nov 23, 2017 14:26:28 GMT
welcome, mcirkovic. At least two things could cause the "not declared" error. 1) You may be using an older version of the Gateway sketch that does not fully work with recent Arduino IDE versions. Try downloading, customizing, & compiling this Gateway version: homeautomation.proboards.com/attachment/download/512 OR 2) As greginkansas suggested, you may not have installed the PubSubClient library. If so, in the gateway sketch, near the code #include PubSubClient.h, find the link for downloading that library. Then install the library in the Arduino IDE via its menu: Sketch/Include Library/Add .Zip Library (navigate to where you saved the file)
|
|