Hi
I’m trying to see if i can change BLE advertising packet by invoking following function
“`
int bt_adapter_le_add_advertising_manufacturer_data(
bt_advertiser_h advertiser,
bt_adapter_le_packet_type_e pkt_type,
int manufacturer_id,
const char *manufacturer_data,
int manufacturer_data_len
);
“`
I called this function like following
“`
bt_adapter_le_add_advertising_manufacturer_data(
bt_advertiser_h advertiser,
‘BT_ADAPTER_LE_PACKET_ADVERTISING’, # pkt_type
‘0x7611’, # manufacturer_id
‘{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}’, # manufacturer_data
int manufacturer_data_len
);
“`
after calling this function, the data i scanned was like this ‘0x02011E0319010013FF11760102030405060708090A0B0C0D0E0F0103084761’ and i splited it into 4 pieces like ‘0x02011E0319010013FF’, ‘1176’, ‘0102030405060708090A0B0C0D0E0F’, ‘0103084761’.
I guess the second one is `manufacturer_id` that i have put, and the third one is the `manufacturer_data`.
so now I’m wondering if i could change the first one and the fourth one.
how to change BLE advertising packet
Hi
I’m trying to see if i can change BLE advertising packet by invoking following function
“`
int bt_adapter_le_add_advertising_manufacturer_data(
bt_advertiser_h advertiser,
bt_adapter_le_packet_type_e pkt_type,
int manufacturer_id,
const char *manufacturer_data,
int manufacturer_data_len
);
“`
I called this function like following
“`
bt_adapter_le_add_advertising_manufacturer_data(
bt_advertiser_h advertiser,
‘BT_ADAPTER_LE_PACKET_ADVERTISING’, # pkt_type
‘0x7611’, # manufacturer_id
‘{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}’, # manufacturer_data
int manufacturer_data_len
);
“`
after calling this function, the data i scanned was like this ‘0x02011E0319010013FF11760102030405060708090A0B0C0D0E0F0103084761’ and i splited it into 4 pieces like ‘0x02011E0319010013FF’, ‘1176’, ‘0102030405060708090A0B0C0D0E0F’, ‘0103084761’.
I guess the second one is `manufacturer_id` that i have put, and the third one is the `manufacturer_data`.
so now I’m wondering if i could change the first one and the fourth one.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio