Analog Output slider does not send zero value

Thank you for taking the time to submit your bug/issue! Please use the points below as a guide when submitting.

  • Device & model you are using (Ex: Pi 2 Model B or Arduino Uno with W5100 ethernet shield)
    Sodaq Explorer working by LoRaWAN with TTN.

  • What dashboard are you using? (Web, iOS, Android)
    Web

  • Please describe the bug / issue as detailed as possible. Attaching the code and any relevant screenshots would be very helpful!
    When i setup a analog output, and move the slider to zero value, no payload is being sent.

Regards

Hugo

How are you decoding the received payload. can you share the code?

I am testing slider on the console seeing how movement of slider generate payloads.
I see that when i move de slider to any point except 0.00 then a new payload is generated, for example
image

But when I move the slider to 0.00 no payload is generated.
It is very simple to repeat the problem.

The code to generate the slider initially is:

#if defined DIGITALOUTPUT_EQUIPADA
  lpp.addDigitalOutput(7, 1); // Envío HIGH en la salida Digital 7 (Sería el estado de la salida?)
  
  lpp.addAnalogOutput (8, 100.0); // Envío HIGH en la entrada Digital 8
  lpp.addDigitalInput (9, 1); // Envío HIGH en la entrada Digital 8
  #endif
  
  // Send it off
  ttn.sendBytes(lpp.getBuffer(), lpp.getSize(),1,false); //

This is the result of moving back and forward the slider from 0.00 to 100 three times.
image

If i move from 0, 50, 100, 50, 0, 50, 100, 50, 0, 100 (50.2 exactly), i see this payloads sent to the console.

image

Note that 08 00 00 FF never is sent!!! That is the issue.:thinking:

So, the code is not important at this instance.

I hope you can reproduce the possible bug.

Regards

Hugo

i received data for value 0 on TTN console.

Here i receive 0 data only ocassionally, the most of times fails.
Can you move the slider from side to side (leaving static in each extrem of course) then you will see that zero value is not being sent or not always.

yes, i was able to reproduce it. let me check what is the issue. A quick fix i can give you is make the min position as 1.

Ok Shramik,

good news that the issue was reproduced, i´m not crazy :slight_smile:
Putting 0,01 as lower limit seems to work.
Let me know any update.
You are a Cayenne Development Team member?

Regards

Hugo

good to hear this.

yes.

Hi Shramik
Do you have some news about this issue? I have checked and the issue is present.

sorry, but this issue will be not fixed. you can set the 0.01 as the lower limit in the device code to make it 0.