Change BLE custom charateristics from Notify to READ.

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Nithin92
Offline
Last seen:2 years 11 months ago
加入:2018-03-15 09:50
Change BLE custom charateristics from Notify to READ.

Hello,

I am trying to implement a sensor board which contains multiple sensors to transmit the data to mobile application via BLE. I am using BLE peripheral example code to implement the functionality. I was successfully able to code all the sensors and make it compatible and working with latest SDK. But the issue is with BLE communication between the sensor Board(peripheral) and Mobile App. I observed that the custom characteristics can be created/added by following the tutorial-3 document. But the data which I am trying to send to the app is not received. The characteristics I have configured is WRITE and NOTIFY, Can the Notify characteristic changed to READ characteristics? this is because my mobile app is always expecting the ready data instead of a notification.

I request someone to help me on this.

Thanks in advance.

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

Hi Nithin92,

I am not sure i get the question the fact that you dont get data to your custom application can be anything and not only related to the properties of the characteristics. For example if you have added the notify property on your characteristic and you wish your peripheral to send the data to the central application, has the central application registered to the notifications that you would like to receive ? are you sending any notifications ? If you have the characteristic's properties are notify and write, you will not be able to read the characteristic. Please check the example that come with the SDK with a generic BLE android or iOS application. What do you mean change the Notify characteristic to read ? You can give your custom characteristics the properties that you would like.

Thanks MT_dialog