mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Removed last part of SPPServer constructor, as it shouldn't start the pairing sequence
This commit is contained in:
parent
c5ec4c2402
commit
18f3ace838
2 changed files with 2 additions and 10 deletions
|
@ -20,7 +20,7 @@
|
||||||
//#define EXTRADEBUG // Uncomment to get even more debugging data
|
//#define EXTRADEBUG // Uncomment to get even more debugging data
|
||||||
//#define PRINTREPORT // Uncomment to print the report sent to the Arduino
|
//#define PRINTREPORT // Uncomment to print the report sent to the Arduino
|
||||||
|
|
||||||
SPPServer::SPPServer(BTD *p, const char *name, const char *pin, bool pair, uint8_t *addr) :
|
SPPServer::SPPServer(BTD *p, const char *name, const char *pin) :
|
||||||
SPPBase(p)
|
SPPBase(p)
|
||||||
{
|
{
|
||||||
if(pBtd)
|
if(pBtd)
|
||||||
|
@ -29,12 +29,6 @@ SPPBase(p)
|
||||||
pBtd->btdName = name;
|
pBtd->btdName = name;
|
||||||
pBtd->btdPin = pin;
|
pBtd->btdPin = pin;
|
||||||
|
|
||||||
if (addr) // Make sure address is set
|
|
||||||
pBtd->pairWithOtherDevice = pair;
|
|
||||||
|
|
||||||
for (uint8_t i = 0; i < 6; i++)
|
|
||||||
pBtd->remote_bdaddr[i] = addr[5 - i];
|
|
||||||
|
|
||||||
/* Set device cid for the SDP and RFCOMM channelse */
|
/* Set device cid for the SDP and RFCOMM channelse */
|
||||||
sdp_dcid[0] = 0x50; // 0x0050
|
sdp_dcid[0] = 0x50; // 0x0050
|
||||||
sdp_dcid[1] = 0x00;
|
sdp_dcid[1] = 0x00;
|
||||||
|
|
|
@ -31,10 +31,8 @@ public:
|
||||||
* @param p Pointer to BTD class instance.
|
* @param p Pointer to BTD class instance.
|
||||||
* @param name Set the name to BTD#btdName. If argument is omitted, then "Arduino" will be used.
|
* @param name Set the name to BTD#btdName. If argument is omitted, then "Arduino" will be used.
|
||||||
* @param pin Write the pin to BTD#btdPin. If argument is omitted, then "0000" will be used.
|
* @param pin Write the pin to BTD#btdPin. If argument is omitted, then "0000" will be used.
|
||||||
* @param pair Set this to true if you want to pair with a device.
|
|
||||||
* @param addr Set this to the address you want to connect to.
|
|
||||||
*/
|
*/
|
||||||
SPPServer(BTD *p, const char *name = "Arduino", const char *pin = "0000", bool pair = false, uint8_t *addr = NULL);
|
SPPServer(BTD *p, const char *name = "Arduino", const char *pin = "0000");
|
||||||
|
|
||||||
/** @name SPPBase implementation */
|
/** @name SPPBase implementation */
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue