⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Lora
Offline
Last seen:3 years 3 months ago
加入:2016-12-05 10:29
Advertise sensor value

Hi,
I have a temperature sensor and i want to advertise the value that the sensor is reading.
I am using the ble_app_profile project and i have already added a temperature characteristic and i can change the description value in user_custs1_def.h but it only accepts a constant value .
So, which is the proper way to advertise the sensor value?

Thanks in advance

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Lora,

Hi Lora,

我不确定我得到这个问题,the advertising data has nothing to with the service that a device has, also i dont get what you mean that "the description value in user_custs1_def.h only accepts a constant value". The proper way to advertise data from the sensor is to place those data in the advertising string and not in a characteristic, so you will have to place the value read from the sensor in the advertising string, you can have a look at the barebone example in order to check how to change the advertising string.

Thanks MT_dialog