mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Added BLE v2 peripheral
PiperOrigin-RevId: 509962831
This commit is contained in:
committed by
Copybara-Service
parent
fc1811f966
commit
d41c26dd24
@@ -14,12 +14,14 @@
|
||||
|
||||
#include "internal/platform/implementation/windows/ble_v2.h"
|
||||
|
||||
#include <array>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "absl/synchronization/mutex.h"
|
||||
#include "internal/platform/implementation/ble_v2.h"
|
||||
#include "internal/platform/implementation/windows/ble_v2_peripheral.h"
|
||||
#include "internal/platform/logging.h"
|
||||
#include "winrt/Windows.Devices.Bluetooth.Advertisement.h"
|
||||
#include "winrt/Windows.Devices.Bluetooth.h"
|
||||
@@ -83,13 +85,9 @@ std::string TxPowerLevelToName(TxPowerLevel tx_power_level) {
|
||||
|
||||
} // namespace
|
||||
|
||||
std::string BleV2Peripheral::GetAddress() const { return ""; }
|
||||
|
||||
BleV2Medium::BleV2Medium(api::BluetoothAdapter& adapter)
|
||||
: adapter_(dynamic_cast<BluetoothAdapter*>(&adapter)) {}
|
||||
|
||||
BleV2Medium::~BleV2Medium() {}
|
||||
|
||||
// advertisement packet and populate accordingly
|
||||
bool BleV2Medium::StartAdvertising(const BleAdvertisementData& advertising_data,
|
||||
AdvertiseParameters advertising_parameters) {
|
||||
|
||||
Reference in New Issue
Block a user