Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MockBleService

Index

Constructors

constructor

Properties

Config

Config: any

connectionInfo

connectionInfo: any

devices

devices: MockBLEDevice[]

scanInfo

scanInfo: object

Type declaration

  • discoveryTimer: any
  • inProgress: boolean

Methods

connect

  • connect(deviceID: number, success: any, failure: any): void

disconnect

  • disconnect(deviceID: number, success: any, failure: any): void

finishConnection

  • finishConnection(callback: any): void

force_disconnect

  • force_disconnect(): void

isConnected

  • isConnected(deviceID: number, success: any, failure: any): void

isEnabled

  • isEnabled(yesCallback: any, noCallback: any): void

startNotification

  • startNotification(deviceID: number, serviceID: string, charID: string, success: any, failure: any): void
  • Parameters

    • deviceID: number
    • serviceID: string
    • charID: string
    • success: any
    • failure: any

    Returns void

startScan

  • startScan(services: any, success: any, failure: any): void

stopNotification

  • stopNotification(deviceID: number, serviceID: string, charID: string, success: any, failure: any): void
  • Parameters

    • deviceID: number
    • serviceID: string
    • charID: string
    • success: any
    • failure: any

    Returns void

stopScan

  • stopScan(success: any, failure: any): void

write

  • write(deviceID: number, serviceID: string, charID: string, value: ArrayBuffer, success: any, failure: any): void
  • Parameters

    • deviceID: number
    • serviceID: string
    • charID: string
    • value: ArrayBuffer
    • success: any
    • failure: any

    Returns void

writeWithoutResponse

  • writeWithoutResponse(deviceID: number, serviceID: string, charID: string, value: ArrayBuffer, success: any, failure: any): void
  • Parameters

    • deviceID: number
    • serviceID: string
    • charID: string
    • value: ArrayBuffer
    • success: any
    • failure: any

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc