Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't declare 2902 characteristic descriptor. Fixes issue 25 #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/cps/cycling-power-measurement-characteristic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ class CyclingPowerMeasurementCharacteristic extends Bleno.Characteristic {
uuid: '2901',
value: 'Cycling Power Measurement'
}),
new Bleno.Descriptor({
// Client Characteristic Configuration
uuid: '2902',
value: Buffer.alloc(2)
}),
//2902 is defined by bleno
new Bleno.Descriptor({
// Server Characteristic Configuration
uuid: '2903',
Expand Down
6 changes: 1 addition & 5 deletions lib/ftms/treadmill-data-characteristic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ class TreadmillDataCharacteristic extends Bleno.Characteristic {
uuid: '2901',
value: 'Cycling Power Measurement'
}),
new Bleno.Descriptor({
// Client Characteristic Configuration
uuid: '2902',
value: Buffer.alloc(2)
}),
//2902 is defined by bleno
new Bleno.Descriptor({
// Server Characteristic Configuration
uuid: '2903',
Expand Down
9 changes: 5 additions & 4 deletions lib/rsc/rsc-measurement-characteristic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ class RSCMeasurementCharacteristic extends Bleno.Characteristic {
uuid: '2901',
value: 'Running Speed And Cadence'
}),
//2902 is defined by bleno
new Bleno.Descriptor({
// Client Characteristic Configuration
uuid: '2902',
value: Buffer.alloc(2)
})
// Server Characteristic Configuration
uuid: '2903',
value: Buffer.alloc(2)
})
]
});

Expand Down