Michael Dietz
|
9dcd9ad046
|
device.connectGATT() deprecated. No need for notification callback handler in writeMode().
|
2016-02-23 10:09:08 +01:00 |
|
Michael Dietz
|
2dbbbb1378
|
Small bug fix: if version is 6 or lower don't send init packet.
|
2016-02-18 13:59:19 +01:00 |
|
Michael Dietz
|
b5e1dbe7c7
|
Use definitions for op codes to make message sequence state easy to follow.
|
2016-02-18 13:45:54 +01:00 |
|
Michael Dietz
|
b871bbae08
|
Use switch statement for DFU OTA message sequence instead of if else.
|
2016-02-18 13:25:09 +01:00 |
|
Michael Dietz
|
dfb7adedce
|
Get rid of warnings due to error being defined as a variable and then used in catch() out of scope.
|
2016-02-18 11:12:30 +01:00 |
|
Michael Dietz
|
daadfd8194
|
Working for both mbed and current revisions of DFU OTA...
Minor problems like writeMode bug in mbed and CRC code is just 0x0 for now so will fail for init packet check.
|
2016-02-18 10:11:56 +01:00 |
|
Michael Dietz
|
c18979f5e1
|
Promise in transfer(...) should resolve after DFU Target is activated and reset.
|
2016-02-17 16:17:24 +01:00 |
|
Michael Dietz
|
70f681e20e
|
No need to disconnect from DFU Target after DFU update. Link will be lost when target is reset and disconnect handler will be called.
|
2016-02-17 16:12:45 +01:00 |
|
Michael Dietz
|
8c9885770c
|
Make message sequence of DFU process more readable.
|
2016-02-17 16:01:30 +01:00 |
|
Michael Dietz
|
98c7a75537
|
Improve how init packet is implemented. Some minor clean up.
|
2016-02-17 15:25:44 +01:00 |
|
Michael Dietz
|
8c10f0010a
|
Nordic's DFU OTA protocol sends data in little endian format. Whether the web bluetooth platform is little endian or not doesn't matter.
|
2016-02-17 14:38:58 +01:00 |
|
Michael Dietz
|
ccd602838c
|
Added an init packet which (for recent DFU OTA protocols) must transferred before the firmware image.
|
2016-02-17 13:08:26 +01:00 |
|
Michael Dietz
|
160889f638
|
Switch to bootloader/DFU mode working for recent revisions of DFU OTA protocol.
|
2016-02-17 11:00:09 +01:00 |
|
Michael Dietz
|
4903d0b9dd
|
DFU Revision Characteristic is not being used optimally.
|
2016-02-16 13:08:00 +01:00 |
|
Michael Dietz
|
908bf53902
|
DFU Controller should not disconnect in dfu.writeMode() when switching target from application mode to bootloader/dfu mode.
|
2016-02-16 11:32:41 +01:00 |
|
Rob Moran
|
e6c232247e
|
Added linting
|
2016-02-15 09:45:15 +00:00 |
|
Rob Moran
|
d92a6230b8
|
Added node example
|
2016-02-15 00:53:02 +00:00 |
|
Rob Moran
|
8563f595cb
|
Further refactor
|
2016-02-05 02:07:42 -06:00 |
|
Rob Moran
|
7ba5e66371
|
Tidied implementation
|
2016-02-04 23:32:54 -06:00 |
|
Rob Moran
|
61386e3915
|
Refactored code
|
2016-02-04 15:46:40 -06:00 |
|
Rob Moran
|
c2236ff468
|
Now injecting logger
|
2016-02-04 12:02:45 -06:00 |
|
Rob Moran
|
1434b14406
|
First site
|
2016-02-04 10:40:31 -06:00 |
|