Hi,
I'm tryng the BLE_Client sketch on Arduino in order to have some information from a bluetooth thermometer.
I need to read a service that I can see with ble_scanner on a smartphone. But if I insert the UUID of the service in the ble_client this tell me that this service is unavalaible.
This device has 2 custom services, if I insert the UUID of the "first" service all is ok. But I need the "second" service.
The service that is recognize is only that I see during scan.
I'm a newbie for Arduino and ESP32.
BR
Marco
arduino ble_client found only one service (newbie)
-
- Posts: 3
- Joined: Tue Jun 02, 2020 10:48 am
Re: arduino ble_client found only one service (newbie)
Screenshot from smartphone, logs from app please, code maybe.
-
- Posts: 3
- Joined: Tue Jun 02, 2020 10:48 am
Re: arduino ble_client found only one service (newbie)
Hi,
code I have used is the ble_client sketch modified by you.
I have changed only the service UUID, and charUUID
the commented row are the one I need to read, the other is the service that is OK.
when the esp32 don't succed in found the service the serial monitor will show:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Starting Arduino BLE Client application...
BLE Advertised Device found: Name: Belter_TP, Address: 01:b6:ec:b1:2a:c7, manufacturer data: a00301b6ecb12ac7, serviceUUID: 0000fee7-0000-1000-8000-00805f9b34fb
Belter_TP is name of the device
Many thanks
Marco
code I have used is the ble_client sketch modified by you.
I have changed only the service UUID, and charUUID
Code: Select all
// The remote service we wish to connect to.
//static BLEUUID serviceUUID("0000fff0-0000-1000-8000-00805f9b34fb");
static BLEUUID serviceUUID("0000fee7-0000-1000-8000-00805f9b34fb");
// The characteristic of the remote service we are interested in.
//static BLEUUID charUUID("0000fff4-0000-1000-8000-00805f9b34fb");
static BLEUUID charUUID("0000fec9-0000-1000-8000-00805f9b34fb");
when the esp32 don't succed in found the service the serial monitor will show:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Starting Arduino BLE Client application...
BLE Advertised Device found: Name: Belter_TP, Address: 01:b6:ec:b1:2a:c7, manufacturer data: a00301b6ecb12ac7, serviceUUID: 0000fee7-0000-1000-8000-00805f9b34fb
Belter_TP is name of the device
Many thanks
Marco
- Attachments
-
- Screenshot_20200602-133846.png (144.18 KiB) Viewed 4267 times
Re: arduino ble_client found only one service (newbie)
Ok, everything seems to look good. So, you need to have code to search one service and then second copy of that code to find second service.
-
- Posts: 3
- Joined: Tue Jun 02, 2020 10:48 am
Re: arduino ble_client found only one service (newbie)
Many Thanks.
How I can find another service, I just pass my service code to the getservice() function.
I have tried to call another time the getservice() function, but none. There is a jolly address, like *.* in order to automatically have the list of all services ?
BR
Marco
How I can find another service, I just pass my service code to the getservice() function.
I have tried to call another time the getservice() function, but none. There is a jolly address, like *.* in order to automatically have the list of all services ?
BR
Marco
Who is online
Users browsing this forum: Google [Bot] and 91 guests