We are facing huge problems with the MQTT update. All old devices in Dashboard although they have automatically got MQTT username, password and clientID, configuring them in the arduino code and uploading to the board, in the dashboard its still pop ups the message for upgrade. So we have to remove all the old devices and all the sensors, actuators, etc we have configured.
Moreover when adding a new device with new MQTT username etc , i can not add for example an Generic Analog Input. When clicking âAdd Sensorâ button, its stays there for ever trying to add the widget. Also please tells under the âChannelâ how we setup the virtual channel, by typing âV0â or just â0â?
What the code you are using? For the new mqtt arduino library, the widgets will automatically appear once the data is sent to the Cayenne dashboard. Kind of like this:
@ufrtgr for sending data to cayenne dashboard from sensor or a value, you dont need to add a widget from dashboard.
use
void loop() {
Cayenne.loop();
//Publish data every 10 seconds (10000 milliseconds). Change this value to publish at a different interval.
if (millis() - lastMillis > 10000) {
lastMillis = millis();
//Write data to Cayenne here. This example just sends the current uptime in milliseconds.
Cayenne.virtualWrite(1, x);
}
}
where 1 is the channel and x is the value of the sensor data you want to send to cayenne dashboard. once you upload this code it will autoatically populate your dashboard with a widget. click on + to add it to your dashboard.
it brings data, but it doesnât solve all the problems. Why i can not add an analog sensor manual? Why those values have to come up by default? DHT22 sensor doesnât work, wrong values come in the dashboard.
on your dashboard go to add new > bring your own thing (blue color). click on it this will give you your MQTT credential. then add this credential into your code and uplaod it. this will add your device to your dashboard.
which arduino board and network shield you are using??