发送我们lue Update

2 posts / 0 new
Last post
tiftoda
Offline
Last seen:5 years 4 months ago
加入:2015-09-01 10:36
发送我们lue Update

Hi,

I'm using "ble_app_perpiheral" as base project. I need to send response when I receive some values from connected device.

1. I want do this in HOOK - user_custs1_long_val_wr_ind_handler, is this right ? Or I need to this in other function ? ( I can't find that part of code that is sending responsonse back when I'm sending Long Value from my iOS device )
2. What API function I need to use for sending response from DA14580 to connected device ? ( If is possible please provide a small examle ).
3. How I can activate USART in "ble_app_peripheral" for sending log data to PC ?

Thank you.

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

Hi tiftoda,

If you want to send a response from the client every time the peripheral sends a value, you can use the indication property. If the characteristic is indicatable then the client should always respond to what you send. You can use the indicatable characteristic for this. You can check from the custom profile how to send an update a value in your database and enable the notifications, you can change it in indication instead.

Thanks MT_dialog