Triggers are not working for "bring your own thing Cayenne MQTT"


#1

Hi there,

This is the details of my configuration

  • Device & model : ESP8266 Thing Board

  • Dashboard : Web

I have connected my Device using the Cayenne MQTT. The triggers don’t work if I add the widget first in the dashboard and then receive data from the device. It works fine If I use the widget that automatically gets created on the dashboard.

Here are the screenshots:
Trigger of automatically created widget

Another Trigger of automatically created widget

Trigger of manually created widget

Configuration of manually created widget

Here is my Code, I am using Arduino IDE to upload the code:

#include <CayenneMQTTESP8266.h>

char ssid[] = “”;
char wifiPassword[] = “”;

char username[] = “”;
char password[] = “”;
char clientID[] = “”;

void setup() {
Cayenne.begin(username, password, clientID, ssid, wifiPassword);
pinMode(5,OUTPUT);
}

void loop() {
Cayenne.loop();
for(int i = 0; i <= 50; i++){
Cayenne.virtualWrite(0,i);
}
}

CAYENNE_IN(1)
{
digitalWrite(5,getValue.asInt());
delay(1000);
}

Please let me know If I am doing anything wrong or is this a bug.

Thanks


#2

Trigger is not working

Try search first.