Callback if a device is discovered.
Callback if an error raises while the discovery process.
Current state of the bluetooth adapter.
Timeout for discovery process.
Starts the discovery process of the bluetooth adapter. executes the onDiscover callback if a new device is detected or executes the onError callback if any errors occurs from the bluetooth device. Returns a promise that resolves after the discovery process is started or rejects if the process can not be started successfully.
State after discovery process
Stops the discovery Process. Returns a promise that resolves after the process is stopped successfully or rejects if the process can not be stopped orderly.
State after stopping the discovery process
Generated using TypeDoc
Represents the bluetooth of the current environment
1.0.0