Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 716 Bytes

advertising.md

File metadata and controls

25 lines (18 loc) · 716 Bytes

Advertising

Advertising is severally downplayed by both operating systems. On iOS, you are limited to advertising the local name and service UUIDs

  • On iOS, you can only advertise a custom local name and custom service UUIDs
  • On Android, things are different
    • You cannot control the device naming
    • TX Power (high, medium, low, balanced)
    • Service Data
    • Service UUIDs
    • Specific Manufacturer Data

For now, I have chosen to support only the same feature band as iOS

CrossBleAdapter.Current.Advertiser.Start(new AdvertisementData
{
    LocalName = "TestServer",
    ServiceUUIDs = new Guid[] { /* your custom UUIDs here */ }
});

CrossBleAdapter.Current.Advertiser.Stop();