diff --git a/BTLE.cpp b/BTLE.cpp index 44beebf..8a107b0 100644 --- a/BTLE.cpp +++ b/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[0]= 0xfe; + pls += 4; // add eddystone service + frame packet chunk(buffer, pls)->size = 5 + urllen; // data length diff --git a/library.json b/library.json index 9f7a1dc..2646929 100644 --- a/library.json +++ b/library.json @@ -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", diff --git a/library.properties b/library.properties index 0005358..d908af5 100644 --- a/library.properties +++ b/library.properties @@ -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+