Home icon indicating copy to clipboard operation
Home copied to clipboard

Add Central/Client capability to Bluetooth

Open alberk8 opened this issue 2 years ago • 3 comments

Description

The current Bluetooth Library does not support connecting to peripheral Bluetooth device/sensor.

How to solve the problem

Implement Client/Central role capability in Bluetooth Library

Describe alternatives you've considered

No response

Aditional context

No response

alberk8 avatar Feb 27 '22 09:02 alberk8

This is in progress. Currently working on the BluetoothLEAdvertisementWatcher class

Still have to decide how to control which role the code is running Peripheral or Central. Maybe if you start the Peripheral/service advertising then in Peripheral /server role and Central tasks will give error.

AdrianSoundy avatar Mar 01 '22 21:03 AdrianSoundy

This is in progress. Currently working on the BluetoothLEAdvertisementWatcher class

Still have to decide how to control which role the code is running Peripheral or Central. Maybe if you start the Peripheral/service advertising then in Peripheral /server role and Central tasks will give error.

I guess for a start, when one mode is running the other should be prevented to run. I know that both can run simultaneously but on ESP32 it will be a stretch to get it running stable.

alberk8 avatar Mar 02 '22 00:03 alberk8

BluetoothLEAdvertisementWatcher now complete and working on BluetoothLEDevice and associated classes

AdrianSoundy avatar Mar 31 '22 00:03 AdrianSoundy