Closed chcmq closed 2 weeks ago
Tried your code and it working fine on my machine. No issues.
But I think you changed HTS_SERVICE_UUID to be "63fb65cc-c38c-40ed-beeb-071f0b76e10e". If I try that I get the same error. Pretty sure it is because the Advertisement is getting too large. If I comment out the line where you add the HTS_SERVICE_UUID to the advertisement, then it works again....
May I ask what kind of code you run normally? Can you provide it?
How to modify the following cases
const char *service_uuids = "63fb65cc-c38c-40ed-beeb-071f0b76e10e";
GByteArray *byte = g_byte_array_new();
g_byte_array_append(byte, (const guint8 *)"\x01\x02\x03\x04", 4);
binc_advertisement_set_service_data(advertisement, service_uuids, byte);
g_byte_array_unref(byte);
Now the AD parameters set are too few, I need to add some custom parameters, so I need to use "binc_advertisement_set_service_data" to set the data of "service_data"