BLE Sensor Services
응답
19. 6. 27 오전 9:37

Hello I am curently setting up the XDK to read all of the sensors at once and then send them over BLE using their respective sensor services. I have found that these services send the sensor data as character arrays, an issue I have found however is that for the majority of the services, not enough characters have been allocated to the sensor readings. For example with the temperature reading, it reads as 24000 mDegrees but only two bytes are allocated for two characters to send the reading for that service. I have come up with two solutions, one is to divide by 1000 to just send the data in Degrees, the other is to alter the services to allow more bytes to be sent for the services. 

I am just wondering if this is actually required.

Thank you

0 (0 투표)
RE: BLE Sensor Services
응답
19. 6. 28 오전 7:44 as a reply to Fraser Gordon.

Hi Fraser,

As far as I know, the accuracy of the BME280 temperature sensor is ±0.5°C :) So you can use the division by 1000 without fear of data loss.
Here is a link to BME280 data sheet: https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280-DS002.pdf

regards

Saeid

0 (0 투표)