Skip to content

Commit

Permalink
restructure folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido Doumen committed Dec 6, 2024
1 parent 5e19b88 commit 40ba645
Show file tree
Hide file tree
Showing 110 changed files with 446 additions and 465 deletions.
2 changes: 1 addition & 1 deletion samples/ant/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const logger = new EventLogger('AntSampleApp')
const isDebug = process.env.DEBUG

logger.log('ANT Sample')
var args = process.argv.slice(2);
var args= process.argv.slice(2);

function runDevice(device) {

Expand Down
2 changes: 1 addition & 1 deletion src/direct-connect/messages/ReadCharacteristic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface TDCReadCharacteristicResponseBody extends TDCBody {
}


export class ReadCharacteristicMessage extends Message<EmptyBody,TDCReadCharacteristicResponseBody> {
export class ReadCharacteristicMessage extends Message<TDCReadCharacteristicRequestBody,TDCReadCharacteristicResponseBody> {

constructor() {
super(DC_MESSAGE_READ_CHARACTERISTIC)
Expand Down
15 changes: 13 additions & 2 deletions src/direct-connect/utils.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,20 @@ describe ('utils', () => {
})

describe('beatifyUUID', () => {
test('hex 16Bit', () => {
test('hex 32Bit', () => {
const res = beautifyUUID('1234ABCD00001000800000805F9B34FB')
expect(res).toBe('1234ABCD-0000-1000-8000-00805F9B34FB')
expect(res).toBe('1234ABCD')
})

test('hex 16Bit', () => {
const res = beautifyUUID('0000ABCD00001000800000805F9B34FB')
expect(res).toBe('ABCD')
})

test('full', () => {
const res = beautifyUUID('0000ABCD00002000800000805F9B34FB')
expect(res).toBe('0000ABCD-0000-2000-8000-00805F9B34FB')
})

})
})
1 change: 0 additions & 1 deletion tools/build/emulator/base.js.map

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions tools/build/emulator/characteristics/read-characteristic.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion tools/build/emulator/emulator.js.map

This file was deleted.

18 changes: 0 additions & 18 deletions tools/build/emulator/read-characteristic.js

This file was deleted.

1 change: 0 additions & 1 deletion tools/build/emulator/read-characteristic.js.map

This file was deleted.

Loading

0 comments on commit 40ba645

Please sign in to comment.