| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 | 2 |
| 3 // Bluetooth UUID constants: | 3 // Bluetooth UUID constants: |
| 4 // Services: | 4 // Services: |
| 5 var blacklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; | 5 var blocklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; |
| 6 var request_disconnection_service_uuid = "01d7d889-7451-419f-aeb8-d65e7b9277af"; | 6 var request_disconnection_service_uuid = "01d7d889-7451-419f-aeb8-d65e7b9277af"; |
| 7 // Characteristics: | 7 // Characteristics: |
| 8 var blacklist_exclude_reads_characteristic_uuid = | 8 var blocklist_exclude_reads_characteristic_uuid = |
| 9 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; | 9 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; |
| 10 var request_disconnection_characteristic_uuid = | 10 var request_disconnection_characteristic_uuid = |
| 11 "01d7d88a-7451-419f-aeb8-d65e7b9277af"; | 11 "01d7d88a-7451-419f-aeb8-d65e7b9277af"; |
| 12 | 12 |
| 13 // Sometimes we need to test that using either the name, alias, or UUID | 13 // Sometimes we need to test that using either the name, alias, or UUID |
| 14 // produces the same result. The following objects help us do that. | 14 // produces the same result. The following objects help us do that. |
| 15 var generic_access = { | 15 var generic_access = { |
| 16 alias: 0x1800, | 16 alias: 0x1800, |
| 17 name: 'generic_access', | 17 name: 'generic_access', |
| 18 uuid: '00001800-0000-1000-8000-00805f9b34fb' | 18 uuid: '00001800-0000-1000-8000-00805f9b34fb' |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 filters: [{ services: services, name: 'Name' }], | 352 filters: [{ services: services, name: 'Name' }], |
| 353 optionalServices: ['heart_rate'] | 353 optionalServices: ['heart_rate'] |
| 354 }, { | 354 }, { |
| 355 filters: [{ services: services, namePrefix: 'Pre' }], | 355 filters: [{ services: services, namePrefix: 'Pre' }], |
| 356 optionalServices: ['heart_rate'] | 356 optionalServices: ['heart_rate'] |
| 357 }, { | 357 }, { |
| 358 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], | 358 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], |
| 359 optionalServices: ['heart_rate'] | 359 optionalServices: ['heart_rate'] |
| 360 }]; | 360 }]; |
| 361 } | 361 } |
| OLD | NEW |