> For the complete documentation index, see [llms.txt](https://dansteren.gitbook.io/cordova-plugin-gotenna/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dansteren.gitbook.io/cordova-plugin-gotenna/api/scanandconnect.md).

# scanAndConnect

If Bluetooth is enabled, will scan for a goTenna in the area and attempt to connect to it.

{% hint style="info" %}
If Bluetooth is enabled, will scan for a goTenna in the area and attempt to connect to it. If this device has connected to a goTenna before, it may specifically look for that goTenna. You can determined if we have connected to a goTenna before by using `getConnectedGotennaAddress()` You can also clear a remembered goTenna by calling `clearConnectedGotennaAddress()`
{% endhint %}

## Arguments

`deviceType?: 'V1' | 'MESH'` The type of goTenna device you wish to scan for.
