Connectivity issue adding device


#1

Hi all,
I am a beginner with this platform. I am trying to connect my first device, but when I enter the setting to generate the sketch file, I am not able to choose the DIGITAL and ANALOG connectivity. Only VIRTIAL appears in the drop menu.
Someone can help me?
ThanksCattura


#2

Virtual connectivity is the communication channel used to transfer data between cayenne server and your device. So in your case for virtual connectivity select channel as 1 and then add the following code:

CAYENNE_IN(1)
{
int x = getValue.asInt();
digitalWrite (ligth_pin, x);

}


#3

Hi shramiksalgaonkar,

Thanks a lot! It helps me.

Regards