Liking cljdoc? Tell your friends :D

chromex.ext.bluetooth-private

clj

Use the chrome.bluetoothPrivate API to control the Bluetooth adapter state and handle device pairing. NOTE: This IDL is dependent on bluetooth.idl.

  • available since Chrome 36
Use the chrome.bluetoothPrivate API to control the Bluetooth
adapter state and handle device pairing.
NOTE: This IDL is dependent on bluetooth.idl.

  * available since Chrome 36
raw docstring

api-tableclj

source

connectclj/smacro

(connect device-address)

Connects to the given device. This will only throw an error if the device address is invalid or the device is already connected. Otherwise this will succeed and invoke |callback| with ConnectResultType.

|device-address| - ?

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [result] where:

|result| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Connects to the given device. This will only throw an error if the device address is invalid or the device is already
connected. Otherwise this will succeed and invoke |callback| with ConnectResultType.

  |device-address| - ?

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [result] where:

  |result| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

connect*cljs

(connect* config device-address)
source

disconnect-allclj/smacro

(disconnect-all device-address)

Tears down all connections to the given device.

|device-address| - ?

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Tears down all connections to the given device.

  |device-address| - ?

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

disconnect-all*cljs

(disconnect-all* config device-address)
source

forget-deviceclj/smacro

(forget-device device-address)

Forgets the given device.

|device-address| - ?

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Forgets the given device.

  |device-address| - ?

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

forget-device*cljs

(forget-device* config device-address)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

on-pairing*cljs

(on-pairing* config channel & args)
source

pairclj/smacro

(pair device-address)

Pairs the given device.

|device-address| - ?

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Pairs the given device.

  |device-address| - ?

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

pair*cljs

(pair* config device-address)
source

set-adapter-stateclj/smacro

(set-adapter-state adapter-state)

Changes the state of the Bluetooth adapter.

|adapter-state| - The new state of the adapter.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Changes the state of the Bluetooth adapter.

  |adapter-state| - The new state of the adapter.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

set-adapter-state*cljs

(set-adapter-state* config adapter-state)
source

set-discovery-filterclj/smacro

(set-discovery-filter discovery-filter)

Set or clear discovery filter.

|discovery-filter| - ?

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Set or clear discovery filter.

  |discovery-filter| - ?

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

set-discovery-filter*cljs

(set-discovery-filter* config discovery-filter)
source

set-pairing-responseclj/smacro

(set-pairing-response options)

|options| - ?

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

  |options| - ?

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

set-pairing-response*cljs

(set-pairing-response* config options)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.bluetooth-private namespace.

Taps all valid non-deprecated events in chromex.ext.bluetooth-private namespace.
sourceraw docstring

tap-on-pairing-eventsclj/smacro

(tap-on-pairing-events channel & args)

Fired when a pairing event occurs.

Events will be put on the |channel| with signature [::on-pairing [pairing-event]] where:

|pairing-event| - A pairing event.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

Fired when a pairing event occurs.

Events will be put on the |channel| with signature [::on-pairing [pairing-event]] where:

  |pairing-event| - A pairing event.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close