File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ In begin() {} before starting to scan, you need to add these lines:
55
55
Bluefruit.begin(0, 2); // sets bluefruit to 2 central connections here
56
56
bt2Reader.setDeviceTableSize(1); // creates space for 1 connection to a BT2 device (the library can handle more)
57
57
bt2Reader.addTargetBT2Device((char *)"BT-TH-XXXXXXX"); // sets the target BT2 device name to connect to
58
- bt2Reader.setLoggingLevel(BT2READER_VERBOSE); // BT2READER_ERRORS_ONLY and BT2READER_QUIET also supports
58
+ // you can also omit this and it will connect to whichever BT2 device it can find
59
+ // you can also addTargetBT2Device(uint8_t * macAddress) where macAddress is 6 bytes
60
+ bt2Reader.setLoggingLevel(BT2READER_VERBOSE); // BT2READER_ERRORS_ONLY and BT2READER_QUIET also supported
59
61
bt2Reader.begin(); // initializes the class
60
62
```
61
63
Add these lines to scanCallback:
You can’t perform that action at this time.
0 commit comments