Binay Kumar
Binay Kumar

Reputation: 21

How long my android BLE device will advertise once I start advertising? And is there a way to increase the duration?

I want to create an advertiser in my android application. I want to advertise it for indefinite time.

Upvotes: 2

Views: 427

Answers (1)

Youssif Saeed
Youssif Saeed

Reputation: 13345

You can advertise for an indefinite time by passing a value of 0 to the setTimeout() method. Have a look at the links below for more information:-

I hope this helps.

Upvotes: 1

Related Questions