Thank you for taking the time to submit your bug/issue! Please use the points below as a guide when submitting.
Hardware : Arduino Uno with a Dragino Lora shield
Data flow Arduino -> Gateway -> The Things Network - > Cayenne
What I did:
I needed to add another analog output representing battery voltage to an existing node. This node already sent 2 integers (temp and humidity) and a float (water level) up to Cayenne OK.
I added the extra line of code to the Arduino software like this:
//get the data values to send
GetTemp(); //global values ‘t’ for temp and ‘h’ for humidity as floats. (4 bytes)*
int16_t uRange = tank_depth - GetDistance(); //read water level (2 bytes)*
volts = getBatteryVoltage(); //this is the new data being added to the payload*
lpp.addAnalogOutput(3, (float) uRange);*
What I saw :
I my debug statements on the Arduino I saw the correct voltage being used.
On the things network I saw the extra data field with the correct value.
However on the Cayenne dashboard I saw the new variable appear as Analog Output (4) but as a slider and not a displayed value. The value of the slider is the correct value of the value output to be displayed. If I delete this widget it comes back again automatically as a slider widget.
When I go into settings I can’t change the widget to anything apart from slider.
Any idea what is going wrong here?
I thought I would have to manually add another widget to represent the new variable and I’m a bit surprised it a) did it automatically by noticing the extra data available from The Things Network and b) appears to get it wrong and and input to the Arduino and not an output becuase down in the ARduino it was specified as an output just like the existing working variable.