Codeless: Characteristic write

⚠️
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.
4 posts / 0 new
Last post
krishnanag
Offline
Last seen:2 years 3 months ago
加入:2018-05-27 21:33
Codeless: Characteristic write

Hi,
The codeless project has a service and three characteristics. Two of these characteristics have the READ and WRITE property. I am using this project to send messages to a smartphone. So, with the ble device being the peripheral, the smartphone can READ the characteristic. Now, I want to make use of the WRITE property. So, if I write something onto one of the characteristics from the smartphone, then it should trigger a function call to maybe send something serially in the ble chip. Can you guide me in achieving this?
Mainly how to know whether WRITE operation has been made by the smartphone?

谢谢!

Device:
PM_Dialog
Offline
Last seen:21 hours 29 min ago
工作人员
加入:2018-02-08 11:03
Hi krishnanag,

Hi krishnanag,

I am sorry for the mess, it's my mistake. I looking for your question and I will respond you until tomorrow morning.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:21 hours 29 min ago
工作人员
加入:2018-02-08 11:03
Hi krishnanag,

Hi krishnanag,

Please check the user_catch_rest_hndl() function in the user_codeless.c file in order to understand how the application handles the received messages. The CUSTS1_VAL_WRITE_IND, informs the application that the profile service role task has been disabled after a disconnection. When you write the first characteristic (INBOUND), the code will enter the CUST1_IDX_INBOUND_VAL case. So, if you check the code, you will see that you are able to write something onto one of the characteristics from the smartphone and then print it from UART. So, you should write ATr+PRINT= into the value of the characteristic from your smart phone.

Thanks, PM_Dialog

krishnanag
Offline
Last seen:2 years 3 months ago
加入:2018-05-27 21:33
谢谢!

谢谢!