Hi,
The "leshan" code seems ok.
All the Thread.sleep in adjustDistance sounds strange to me.
Did you try to implement a dummy/mock sensor with random
generating value ? without all the gpio stuff to be sure the
problem is not there. (This will be easiest for us to reproduce)
Simon
Le 31/07/2017 à 14:53, Thong Q. Nguyen
a écrit :
Hi all,
I am trying to implement an ultrasonic sensor (connect
to my raspberry pi) as a leshan client and make the
server observes the collected data from that sensor. I
use the leshan-client-demo/RandomTemperatureSensor as
the template. So far, I can use the web UI of leshan
server to read the data from my sensor, but the problem
is that the sensor value doesn't update in one running
session (I have to restart the leshan client to get the
new value of the sensor in the web UI). My full code for
that class is here
https://pastebin.com/av3WNbd1.
I don't know if this is off-topic here or not, but
hopefully you can give me some suggestions :)
Thank you in advance.
Best regards,
Thong Q. Nguyen
_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev