I don't know why this is happening.
Fork of BLE_API by
services/DFUService.cpp@995:7249ab3ad1ab, 2016-02-05 (annotated)
- Committer:
- shibbs
- Date:
- Fri Feb 05 01:54:38 2016 +0000
- Revision:
- 995:7249ab3ad1ab
- Parent:
- 242:0e9201b67e2f
Un-changed the device info service; ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rohit Grover |
118:620d28e7a1ba | 1 | /* mbed Microcontroller Library |
Rohit Grover |
118:620d28e7a1ba | 2 | * Copyright (c) 2006-2013 ARM Limited |
Rohit Grover |
118:620d28e7a1ba | 3 | * |
Rohit Grover |
118:620d28e7a1ba | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Rohit Grover |
118:620d28e7a1ba | 5 | * you may not use this file except in compliance with the License. |
Rohit Grover |
118:620d28e7a1ba | 6 | * You may obtain a copy of the License at |
Rohit Grover |
118:620d28e7a1ba | 7 | * |
Rohit Grover |
118:620d28e7a1ba | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Rohit Grover |
118:620d28e7a1ba | 9 | * |
Rohit Grover |
118:620d28e7a1ba | 10 | * Unless required by applicable law or agreed to in writing, software |
Rohit Grover |
118:620d28e7a1ba | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Rohit Grover |
118:620d28e7a1ba | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Rohit Grover |
118:620d28e7a1ba | 13 | * See the License for the specific language governing permissions and |
Rohit Grover |
118:620d28e7a1ba | 14 | * limitations under the License. |
Rohit Grover |
118:620d28e7a1ba | 15 | */ |
Rohit Grover |
118:620d28e7a1ba | 16 | |
Rohit Grover |
118:620d28e7a1ba | 17 | #include "DFUService.h" |
Rohit Grover |
118:620d28e7a1ba | 18 | |
rgrover1 | 242:0e9201b67e2f | 19 | const uint8_t DFUServiceBaseUUID[] = { |
Rohit Grover |
118:620d28e7a1ba | 20 | 0x00, 0x00, 0x00, 0x00, 0x12, 0x12, 0xEF, 0xDE, |
Rohit Grover |
118:620d28e7a1ba | 21 | 0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23, |
Rohit Grover |
118:620d28e7a1ba | 22 | }; |
rgrover1 | 242:0e9201b67e2f | 23 | const uint16_t DFUServiceShortUUID = 0x1530; |
rgrover1 | 242:0e9201b67e2f | 24 | const uint16_t DFUServiceControlCharacteristicShortUUID = 0x1531; |
rgrover1 | 242:0e9201b67e2f | 25 | const uint16_t DFUServicePacketCharacteristicShortUUID = 0x1532; |
Rohit Grover |
118:620d28e7a1ba | 26 | |
rgrover1 | 242:0e9201b67e2f | 27 | const uint8_t DFUServiceUUID[] = { |
Rohit Grover |
118:620d28e7a1ba | 28 | 0x00, 0x00, (uint8_t)(DFUServiceShortUUID >> 8), (uint8_t)(DFUServiceShortUUID & 0xFF), 0x12, 0x12, 0xEF, 0xDE, |
Rohit Grover |
118:620d28e7a1ba | 29 | 0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23, |
Rohit Grover |
118:620d28e7a1ba | 30 | }; |
rgrover1 | 242:0e9201b67e2f | 31 | const uint8_t DFUServiceControlCharacteristicUUID[] = { |
Rohit Grover |
118:620d28e7a1ba | 32 | 0x00, 0x00, (uint8_t)(DFUServiceControlCharacteristicShortUUID >> 8), (uint8_t)(DFUServiceControlCharacteristicShortUUID & 0xFF), 0x12, 0x12, 0xEF, 0xDE, |
Rohit Grover |
118:620d28e7a1ba | 33 | 0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23, |
Rohit Grover |
118:620d28e7a1ba | 34 | }; |
rgrover1 | 242:0e9201b67e2f | 35 | const uint8_t DFUServicePacketCharacteristicUUID[] = { |
Rohit Grover |
119:18684018b83e | 36 | 0x00, 0x00, (uint8_t)(DFUServicePacketCharacteristicShortUUID >> 8), (uint8_t)(DFUServicePacketCharacteristicShortUUID & 0xFF), 0x12, 0x12, 0xEF, 0xDE, |
Rohit Grover |
119:18684018b83e | 37 | 0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23, |
Rohit Grover |
119:18684018b83e | 38 | }; |
Rohit Grover |
118:620d28e7a1ba | 39 | |
rgrover1 | 242:0e9201b67e2f | 40 | DFUService::ResetPrepare_t DFUService::handoverCallback = NULL; |