Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Aug 12, 2018
1 parent 79bf4b8 commit df35d36
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Tests/BluetoothTests/iBeaconTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,28 @@ final class iBeaconTests: XCTestCase {

let hostController = TestHostController()

/**
SEND [200A] LE Set Advertise Enable - 0x00
[200A] Opcode: 0x200A (OGF: 0x08 OCF: 0x0A)
Parameter Length: 1 (0x01)
Advertising Enable: 00
*/

hostController.queue.append(
.command(HCILowEnergyCommand.setAdvertiseEnable.opcode,
[0x0a, 0x20, 0x01, 0x00]
)
)

/**
RECV Command Complete [200A] - LE Set Advertise Enable
Parameter Length: 4 (0x04)
Status: 0x00 - Success
Num HCI Command Packets: 0x01
Opcode: 0x200A (OGF: 0x08 OCF: 0x0A) - [Low Energy] LE Set Advertise Enable
*/
hostController.queue.append(.event([0x0e, 0x04, 0x01, 0x0a, 0x20, 0x00]))

// LE Set Advertising Parameters (15 bytes)
hostController.queue.append(
.command(HCILowEnergyCommand.setAdvertisingParameters.opcode,
Expand Down

0 comments on commit df35d36

Please sign in to comment.