I have been trying to get a Bluetooth scale to work with an esp32 to make measuring easier.
According to the documentation of the scale, it is able to be paired using ssp (secure simple pairing) after this happens it can communicate using spp (serial port profile).
It also says the following in the documentation.
I set the device in pairing mode and flash the spp initiator demo to the esp32. It can see the device with GAP, the cod returns the expected value 0x90C(this is seen as a bad code by the code, however). This means it is a health device of the type scale.They meet BT Service
Discovery Protocol (SDP) and Serial Port Profile (SPP) services to communicate with other BT
Access Point (AP). AP can be a Smart Phone, PC, or a proprietary set top box.
The full log with a lot of debug data (1200+ lines) is found here https://pastebin.com/vueAPcvy
Some more info about the device i try to connect to:
Type : Classic - BR/EDR
Profiles Supported: Health Device(HDP)
UUID List :
00001400-0000-1000-8000-00805f9b34fb
00000000-0000-1000-8000-00805f9b34fb
00000000-0000-1000-8000-00805f9b34fb
00000000-deca-fade-deca-deafdecacaff
The only actual "error" I get is
Code: Select all
I (10416) SPP_INITIATOR_DEMO: ESP_SPP_DISCOVERY_COMP_EVT status=1 scn_num=0
I have been struggling with this for 2 weeks, and i'll appreciate any help