Windows 10 Bluetooth Advertisement API -


is possible use advertisementpublisher send major , minor id when acting beacon, , possible use advertisementwatcher send , receive id?

cheers

yes, send:

var manufacturerdata = new bluetoothlemanufacturerdata();  manufacturerdata.companyid = 0x004c;  byte[] dataarray = new byte[] {     // last 2 bytes of apple's ibeacon     0x02, 0x15,     // proximity uuid     0x44, 0x50, 0x3f, 0x1b,     0xc0, 0x9c, 0x4a, 0xee,     0x97, 0x2f, 0x75, 0x0e,     0x9d, 0x34, 0x67, 0x84,     // major     0x00, 0x01,     // minor     0x00, 0x10,     // tx power     0xc5 };  // using system.runtime.interopservices.windowsruntime; manufacturerdata.data = dataarray.asbuffer();  bluetoothleadvertisementpublisher publisher =     new bluetoothleadvertisementpublisher();  publisher.advertisement.manufacturerdata.add(manufacturerdata);  publisher.start(); 

to receive, go this question.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -