Skip to content

Commit e8a54ea

Browse files
committed
Comment supervisor ble data arrays.
1 parent 17c8356 commit e8a54ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

supervisor/shared/bluetooth.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ bleio_characteristic_obj_t supervisor_ble_length_characteristic;
5151
bleio_uuid_obj_t supervisor_ble_length_uuid;
5252
bleio_characteristic_obj_t supervisor_ble_contents_characteristic;
5353
bleio_uuid_obj_t supervisor_ble_contents_uuid;
54+
55+
// This is the base UUID for CircuitPython services and characteristics.
5456
const uint8_t circuitpython_base_uuid[16] = {0x6e, 0x68, 0x74, 0x79, 0x50, 0x74, 0x69, 0x75, 0x63, 0x72, 0x69, 0x43, 0x00, 0x00, 0xaf, 0xad };
57+
// This standard advertisement advertises the CircuitPython editing service and a CIRCUITPY short name.
5558
uint8_t circuitpython_advertising_data[] = { 0x02, 0x01, 0x06, 0x02, 0x0a, 0x00, 0x11, 0x07, 0x6e, 0x68, 0x74, 0x79, 0x50, 0x74, 0x69, 0x75, 0x63, 0x72, 0x69, 0x43, 0x00, 0x01, 0xaf, 0xad, 0x06, 0x08, 0x43, 0x49, 0x52, 0x43, 0x55 };
59+
// This scan response advertises the full CIRCUITPYXXXX device name.
5660
uint8_t circuitpython_scan_response_data[15] = {0x0e, 0x09, 0x43, 0x49, 0x52, 0x43, 0x55, 0x49, 0x54, 0x50, 0x59, 0x00, 0x00, 0x00, 0x00};
5761
mp_obj_list_t service_list;
5862
mp_obj_t service_list_items[1];

0 commit comments

Comments
 (0)