> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/printer/btprinterread.md).

# btPrinterRead

## Description

Reads data from a bluetooth device.

## Input / Parameter

N/A

## Output

N/A

## Callback

### callback

The function to be executed if the reading of data is successful.

### errorCallback

The function to be executed if the reading of data is not successful.

## Video

Coming Soon.

## Example

The user wants to read data from a bluetooth device.

### Steps

1. Call the function `btPrinterRead`.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-c1b583d1c94cc9259b60303c043607eb86ff13f1%2FbtPrinterRead-step-1.png?alt=media)
2. Call the function `infoDialog` in the callbacks of the `btPrinterRead` function to view the status.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-b529275c624e2e2117b1eca291704753509c384e%2FbtPrinterRead-step-2.png?alt=media)

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-8c9017df83432f00eef839dbdf6d6b125d233fad%2FbtPrinterRead-step-3.png?alt=media)

### Result

1. If reading the data is successful, then a success infoDialog will appear, otherwise the error infoDialog will appear.

   ![](https://github.com/OrangeKloud/emobiq-documentation/blob/master/document/client/006-actions-and-visual-logic/action-reference/cordova/Printer/btPrinterRead/btPrinterRead-result-1.jpg)

## Links
