2017년 7월 14일 금요일

BLE services and characteristics


There are blocks in the BLE extension to access ALL services and ALL characteristics - each one comes across as a huge string

There are also blocks to access service or characteristic by Index.

How can you access only the characteristics for a particular service?

--
You cannot. Because the BLE extension has no intelligence about this. You have to know yourself which characteristic you would need. The blocks help you only to find out whether they are available.

--
There is a way to show all supported Services and Characteristics. These should return a list with the Services and characteristics. But to be honest...I´m not able to create a List which show me the Services. How do I do this ?

-- 
Use the call BluetoothLE.SupportedServices block.
There is also a call BluetoothLE.SupportedCharacteristics block, but it does not help you to find the supported characteristics for s specific service.


-- 
I've noted this as future work for the BLE extension.

-- 
Nice!

-- 
Excellent news. 

-- 

댓글 없음:

댓글 쓰기