Oprava indexu, pouziti rychlejsi funkce z RF24
This commit is contained in:
parent
3e5d9f5469
commit
6332795d28
5
BTLE.cpp
5
BTLE.cpp
@ -360,7 +360,7 @@ bool BTLE::eddystoneURL(const char *url){
|
||||
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;
|
||||
chunk(buffer,pls)->data[1]= 0xfe;
|
||||
pls += 4;
|
||||
|
||||
// add eddystone service + frame packet
|
||||
@ -392,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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user