Creates a instance that represents a the local bluetooth environment.
Callback if device is discovered
Callback if error occurs
Time to wait for connected bluetooth adapter
State if adapter is enabled
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
Bluetooth environment using noble.js.
1.0.0