Google nearby fix for EddystoneURL.

This commit is contained in:
Pavel Brychta 2018-09-11 19:21:34 +02:00
parent 9ea9991a09
commit 3e5d9f5469
3 changed files with 13 additions and 6 deletions

View File

@ -351,10 +351,17 @@ bool BTLE::eddystoneURL(const char *url){
buffer.mac[5] = ((__DATE__[9]-0x30) << 4) | (__DATE__[10]-0x30);
// add device descriptor chunk
chunk(buffer,pls)->size = 0x02; // chunk size: 2
chunk(buffer,pls)->type = 0x01; // chunk type: device flags
chunk(buffer,pls)->data[0]= 0x06; // flags: CSS v5, Part A, paragraph 1.3
pls += 3;
// chunk(buffer,pls)->size = 0x02; // chunk size: 2
// chunk(buffer,pls)->type = 0x01; // chunk type: device flags
// chunk(buffer,pls)->data[0]= 0x06; // flags: CSS v5, Part A, paragraph 1.3
// pls += 3;
// ??? something for nearby
chunk(buffer,pls)->size = 0x03; // chunk size: 3
chunk(buffer,pls)->type = 0x03; // chunk type:
chunk(buffer,pls)->data[0]= 0xaa;
chunk(buffer,pls)->data[0]= 0xfe;
pls += 4;
// add eddystone service + frame packet
chunk(buffer, pls)->size = 5 + urllen; // data length

View File

@ -17,7 +17,7 @@
"type": "git",
"url": "http://git.xpablo.cz/i-Smarties/BTLE.git"
},
"version": "0.1",
"version": "0.2",
"license": "GPL3.0",
"frameworks": "arduino",
"platforms": "atmelavr",

View File

@ -1,5 +1,5 @@
name=BTLE
version=0.1
version=0.2
author=Florian Echtler, Pavel Brychta
maintainer=Pavel Brychta
sentence=Bluetooth LE for the NRF24L01+