This commit is contained in:
parent
ae692f67af
commit
c6ffbacb03
|
|
@ -85,6 +85,9 @@ void SensorLogger::begin(uint8_t soilPin) {
|
||||||
BLEAdvertising* advertising = BLEDevice::getAdvertising();
|
BLEAdvertising* advertising = BLEDevice::getAdvertising();
|
||||||
advertising->addServiceUUID(kNusServiceUuid);
|
advertising->addServiceUUID(kNusServiceUuid);
|
||||||
advertising->setScanResponse(true);
|
advertising->setScanResponse(true);
|
||||||
|
BLEAdvertisementData scanResponseData;
|
||||||
|
scanResponseData.setName(bluetoothName_.c_str());
|
||||||
|
advertising->setScanResponseData(scanResponseData);
|
||||||
advertising->setMinPreferred(0x06);
|
advertising->setMinPreferred(0x06);
|
||||||
advertising->setMinPreferred(0x12);
|
advertising->setMinPreferred(0x12);
|
||||||
BLEDevice::startAdvertising();
|
BLEDevice::startAdvertising();
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#include "NeoPixelController.h"
|
#include "NeoPixelController.h"
|
||||||
#include "SensorLogger.h"
|
#include "SensorLogger.h"
|
||||||
|
|
||||||
const char kA2dpDeviceName[] = "BT_Speaker5.4";
|
const char kA2dpDeviceName[] = "BT_Speaker5.5";
|
||||||
|
|
||||||
// I2C接続のOLED設定 (SSD1306 128x64)
|
// I2C接続のOLED設定 (SSD1306 128x64)
|
||||||
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
|
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue