OpenMQTTGateway
OpenMQTTGateway copied to clipboard
not compile in arduino ide
Good afternoon. I'm trying to compile it in Arduino according to the instructions. but I get an error
"Compilation error: declaration of template parameter 'T' shadows template parameter"
on this line 326 : "void Config_update(JsonObject& data, const char* key, T& var);"
Good afternoon, Arduino IDE will not be supported in the next release, as announced on v1.7.0 I would suggest to use platformIO instead.
This issue is stale because it has been open for 90 days with no activity.
Comment line 325 & 326 out. It seems arduino IDE no longer popular also in version 1.7.0...
PubSubClient client;
//template <typename T> // Declared here to avoid pre-compilation issue (missing "template" in auto declaration by pio)
//void Config_update(JsonObject& data, const char* key, T& var);
template <typename T>
This issue is stale because it has been open for 90 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.