Skip to main content
Visitor II
January 29, 2020
Question

Trying to read hnd 0x0001 (supose to be Temperature) but the value is alway the same

  • January 29, 2020
  • 1 reply
  • 688 views

I searched and I found thar the temperature on the stevaL-MKSBOX1V1 is in handler 0x00001. So I conect using my raspberry and blueZ. Using char-read-hnd 0x0001 I always obtain the same value. Do you know the correct handler for temperature?

    This topic has been closed for replies.

    1 reply

    ST Employee
    February 7, 2020

    Hi @Nicolás Martinez​ , the bluetooth pack that the ST.box sends to the app is composed by 10 bytes, structured as [timestamp0, timestamp1, timestamp2, timestamp3, press0, press1, hum0, hum1, temp0, temp1]. The temperature is the last feature sent, so you have to discard the first bytes and keep the last ones. Btw, how is structured your application? Did you enable the Temperature sensor in your app? Regards

    NMart.1Author
    Visitor II
    February 7, 2020

    OK, thanks. That information has helped me. I have another question. Where can I find all the information related to the sensor (like the one you told me)? I don’t find it in the resources of the product.

    Thanks