I’m a new user here and I’m interested whether is possible only display an internal variable (float)?
If yes, which device use??
I have my old project - Anemometer which operate fine. The value I display on LCD 2x16 display.
Because in cayenne I didn’t found any device for connecting the anemometer I’d like to use my sketch and let to display the variable with wind value on the cayenne…
If somebody can help me I very appreciate it.
Welcome to cayenne community @dartanan
this lines sends the value of x to MQTT channel 0 and this value is displayed on cayenne dashboard.
you have to find a anemometer which can get connected to arduino like this Davis Anemometer Arduino Hookup | Code (Part 1 of 3)
and then use the above line to send the values.
many thanks - I’ll try it
By the “device” I thought the widget. (which choose?)
the solution i gave above is using cayenne MQTT library so the code line automatically adds the widget to the dashboard. and have a look at different data types Data types for Cayenne MQTT API
it really works!!!
My last question is - does use <CayenneMQTTEthernet.h> or <CayenneEthernet.h> some internal Timer?
It is important for me because I use Timer for measure the time between 2 edges of the anemometer.
i dint get what you are trying to achieve.
it is easy…
A time ago I programmed an RC switch in to a ATTiny85 and used there a function “millis()” and at the same time I had to measure an input PPM signal.
(the function millis() uses a Timer0 => I had to use for measuring PPM a Timer 1 to avoid a collision - it is not easy programme by beginner Arduino C language)
It was the purpouse of my question
What I’ll do is to use my working anemometer I’ve wrote ago.
I’ll only send to cayenne a value of an internal variable to web thanks to MQTT API.
I have easy question - is there easy way to send (update) data(internal variable) to the cayenne dashboard WITHOUT this: cayenne.loop(); ??
Only send the data from my main loop program as I decide.
No, cayenne.loop is necessary to keep the connection alive and process message.