How to write an opcode 0x02 over BLE using a service characteristic

조회 수: 8 (최근 30일)
Subhrajit Das
Subhrajit Das 2023년 1월 3일
답변: Vanshika Vaishnav 2023년 3월 9일
I am using a RSL10 eval board. I want to control the eval board over one of its service characteristics knows as Control Point Characteristic. The Control Point characteristic value consists of 1 octet opcode that defines what kind of request is being made followed by 0 or more octets with command specific arguments.This characteristic allows only Write Without Response property or optionally also Write property. How can I write an opcode over BLE for this characteristic? I have tried
contpoint=characteristic(b,"00000004-0001-0362-B5DA-012DD27485F8","00000004-0002-0362-B5DA-012DD27485F8")
write(contpoint,uint8(hex2dec('1')),"withresponse")
but this does not work with message unknown error.
Please let me know how to solve this.

답변 (1개)

Vanshika Vaishnav
Vanshika Vaishnav 2023년 3월 9일
There is no such Control Point Characteristic in "characteristic" function. You may use some other properties.
For more information, refer the given documentation: -

카테고리

Help CenterFile Exchange에서 ECG / EKG에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by