It output to the serial so I know the wiring and the sensor works…
Here is the dashboard…
I’m at a bit of a loss as to what I’ve done wrong or missing.
Hopefully someone can tell me what simple error I have made!
Remove both your widgets off your dashboard and try this. May need to specify the types on your virtual pins. The widgets will pop up automatically or at least they should. Let me know if it works
I was just stuffing around and changed the channel from 0 to V0 and data appeared! So I removed the widgets and it automatically populated them. Thanks mate.
The “actuator” or something that sends a command to the micro controller won’t auto populate. You need to add the widget yourself. You also need to add a function in your code that handles the actuator input. You can run code in the “in” function on channel 22 that executes when the actuator is clicked.
CAYENNE_IN(22)
{
sleepButton = getValue.asInt();
if (sleepButton == 1)
{
run code here();
}
else
{
run alternate code here();
}
}