2 Commits
v0.1 ... v0.2

Author SHA1 Message Date
3e5d9f5469 Google nearby fix for EddystoneURL. 2018-09-11 19:21:34 +02:00
9ea9991a09 Target platform correction. 2018-07-21 15:42:31 +02:00
3 changed files with 14 additions and 7 deletions

View File

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

View File

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

View File

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