OpenMQTTGateway icon indicating copy to clipboard operation
OpenMQTTGateway copied to clipboard

not compile in arduino ide

Open gerashk opened this issue 1 year ago • 3 comments

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);"

gerashk avatar May 11 '24 12:05 gerashk

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.

1technophile avatar May 11 '24 13:05 1technophile

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Aug 10 '24 00:08 github-actions[bot]

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>

zackfuchtel avatar Aug 10 '24 16:08 zackfuchtel

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Nov 09 '24 00:11 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 23 '24 00:11 github-actions[bot]