I am getting the following warning about a deprecated conversion.
Is it a problem or just a warning?
In file included from /Users/John/Documents/Arduino/libraries/Cayenne-MQTT-ESP-master/src/CayenneMQTTWiFiClient.h:21:0,
from /Users/John/Documents/Arduino/libraries/Cayenne-MQTT-ESP-master/src/CayenneMQTTESP8266.h:23,
from /Users/John/Documents/Arduino/Hydroponics/Cayenne-MQTT-ESP/ESP8266/ESP8266.ino:6:
/Users/John/Documents/Arduino/libraries/Cayenne-MQTT-ESP-master/src/CayenneArduinoMQTTClient.h: In member function ‘void CayenneArduinoMQTTClient::connect()’:
/Users/John/Documents/Arduino/libraries/Cayenne-MQTT-ESP-master/src/CayenneArduinoMQTTClient.h:58:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
if (!NetworkConnect(&_network, CAYENNE_DOMAIN, CAYENNE_PORT)) {
I am not sure that will help.
The compiler is clearly complaining about a deprecated conversion:
master/src/CayenneArduinoMQTTClient.h:58:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
and this complaint refers to an item in CayenneArduinoMQTTClient.h.
Not really my code but I think this is what it is referring to:
Cayenne.begin(username, password, clientID, ssid, wifiPassword);
which reference:
char username = “93…”;
char password = “75…”;
char clientID = “ae…”;
and …
char ssid = “HA…”;
char wifiPassword = “HA…”;
Isn’t the point that everything including the slider works for MacOS/(whatever browser you choose)?
And that the On/Off button, timer data and history data work on the Android systems.
I assume you have a topic per device/function, so I cannot see how MQTT could be the culprit.
I think you need to look at the host slider code as there are a lot of other issues with that as well. Including not working after you set the units!
In file included from /Users/John/Documents/Arduino/libraries/Cayenne-MQTT-ESP/src/CayenneMQTTWiFiClient.h:21:0,
from /Users/John/Documents/Arduino/libraries/Cayenne-MQTT-ESP/src/CayenneMQTTESP32.h:23,*
from /Users/John/Documents/workspace/SmartNutrientPump/SmartNutrientPump.ino:13:*
/Users/John/Documents/Arduino/libraries/Cayenne-MQTT-ESP/src/CayenneArduinoMQTTClient.h: In member function ‘void CayenneArduinoMQTTClient::connect()’:
/Users/John/Documents/Arduino/libraries/Cayenne-MQTT-ESP/src/CayenneArduinoMQTTClient.h:58:63: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!NetworkConnect(&_network, CAYENNE_DOMAIN, CAYENNE_PORT)) {*
I think it is caused by this definition in “CayenneUtils/CayenneDefines.h” :