Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
6332795d28 | |||
3e5d9f5469 | |||
9ea9991a09 |
20
BTLE.cpp
20
BTLE.cpp
@ -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[1]= 0xfe;
|
||||
pls += 4;
|
||||
|
||||
// add eddystone service + frame packet
|
||||
chunk(buffer, pls)->size = 5 + urllen; // data length
|
||||
@ -385,7 +392,8 @@ bool BTLE::eddystoneURL(const char *url){
|
||||
|
||||
// flush buffers and send
|
||||
radio->stopListening();
|
||||
radio->write( outbuf, pls+11 );
|
||||
radio->startWrite(outbuf, pls+11 );
|
||||
// radio->write(outbuf, pls+11 );
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,10 +17,10 @@
|
||||
"type": "git",
|
||||
"url": "http://git.xpablo.cz/i-Smarties/BTLE.git"
|
||||
},
|
||||
"version": "0.1",
|
||||
"version": "0.2",
|
||||
"license": "GPL3.0",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "avr",
|
||||
"platforms": "atmelavr",
|
||||
"build": {
|
||||
"libCompatMode": 2
|
||||
}
|
||||
|
@ -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+
|
||||
|
Reference in New Issue
Block a user