First you must have a cayenne account you can create it for free here.
ArduinoThen we choose the card to work with. In my case the Arduino one, and we will do it via USB, this generates an Arduino code with the necessary commands for the connection. We need to install the Cayenne library in our Arduino software, also there is a tutorial. That should give us a "token
" like:
Char token [] = "n4g0egbrcq";
This is an identifier of our device. Then we compile the program.
PC (Windows)Open the start menu in Windows and type CMD to open the command prompt. Navigate to where the Cayenne library is. It should be in the following path:
C: \ Users \ [YourUserName] \ Documents \ Arduino \ libraries \ Cayenne \ extras \ scripts
In my case my case the path was:
C: \ Users \ Admin \ Documents \ Arduino \ libraries \ Cayenne \ extras \ scripts
Then we type:
Cayenne-ser.bat -c COM2
Where is the arduino Cayenne-ser.bat -c COM3
In my case, and the platform will connect. Then we choose the sensors or widgets we need and we will generate the necessary code for each of them, I just chose a line char and send the data through the virtual channel 0
.
.
Comments