Skip to content

How to connect to device not advertising #307

Answered by twyatt
azlekov asked this question in Q&A
Discussion options

You must be logged in to vote

How can I connect to a device which is not advertising?

It is my understanding that you cannot connect to a device unless it is advertising (even if you have its identifier) — at least this has been my experience on Android, not certain about the other platforms. Every time I've tried to connect to a device that isn't advertising, on Android I get a GATT 133 error.

So, at least on Android, having the identifier simply means you don't need to scan, but the device will still need to be advertising.

I saw that peripheral can be created via identifier, but is it possible to obtain identifier from a common code?

Identifier support was added in 1.16.0.

You can retrieve the identifier via the

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@azlekov
Comment options

@twyatt
Comment options

@twyatt
Comment options

Answer selected by azlekov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants