Set Advertising to Service Data GAP type 0x07

Hey,

I am pretty new on all this. However got some experince in embedded software.

As a first task using Arduino BLE i gave myself the challenge to connect the Arduino to a PC based App.

I know that in order to finish the SCAN Response succesfully I need to respond with a 128 Bit UUuId with Service Type 0x07

However i cant get a Code written that is doing this ... its always responding wih 0x06.

When browsing the Library in noticed that within BLEAdvertisingData.h
the corresponding constants are defined in BLEAdField.

enum BLEAdField {
BLEFieldFlags = 0x01,
BLEFieldIncompleteAdvertisedService16 = 0x02,
BLEFieldCompleteAdvertisedService16 = 0x03,
BLEFieldIncompleteAdvertisedService128 = 0x06,
BLEFieldCompleteAdvertisedService128 = 0x07,

When searching the library source code for "BLEFieldCompleteAdvertisedService128"
It could nowhere be found. (but BLEFieldIncompleteAdvertisedService128 )

From that I assume that there is no build in method to set the Type to 0x07 or
there is a method to set it explicitly to the value.

Did anybody have a similar problem ? and could assisst me with some idea or futher reading to get arround this ?

Hans-Peter

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.