bluetooth GATT questions
#1
Can someone help clear up my understanding of bluetooth services and attributes on Infinitime? I figured out how to set date and time using gatttool, but am confused as to why there are three different characteristics associated with the CurrentTime service, and how I could have found that out from the source code instead of trial and error with gatttool until I found something that looked like a time and date code.

In Infinitime/src/components/ble/CurrentTimeService.h, I can see that ctsId sets the UUID of the CurrentTime service to 0x1805. gatttool tells me this has three characteristics with handles 17, 18, and 19. Handle 19 has the date and time, and gatttool can set time on the watch with char-write-cmd. But what are handles 17 and 18 doing? And where in the source code are these characteristics defined?

Thanks,
  Reply


Messages In This Thread
bluetooth GATT questions - by wilsonjw - 07-07-2021, 09:09 PM
RE: bluetooth GATT questions - by danielt - 07-08-2021, 02:12 AM
RE: bluetooth GATT questions - by wilsonjw - 07-08-2021, 08:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bluetooth BLE-MIDI-controller app for PineTime / InfiniTime Luno 0 936 08-20-2023, 05:17 AM
Last Post: Luno
  Python programme for a vibration signal from Raspberry Pi 4 via bluetooth connection Tria91 1 1,203 06-03-2023, 04:14 PM
Last Post: wibble
  Realtime heartrate and accelerometer via bluetooth Marc_s 0 976 05-01-2023, 05:40 AM
Last Post: Marc_s
  help on developing BLE bluetooth MIDI Luno 0 992 04-05-2023, 12:08 PM
Last Post: Luno
  How to use bluetooth after flashing mynewt razrosman 0 1,460 06-09-2022, 12:27 PM
Last Post: razrosman
  bluetooth heart rate real time monitoring ptmatrtwo 3 4,626 02-03-2022, 10:06 PM
Last Post: barray
  Article: Bluetooth Time Sync and LVGL on PineTime Mynewt lupyuen 0 2,999 10-15-2020, 05:51 PM
Last Post: lupyuen
  Article: Your First Bluetooth Low Energy App with Flutter lupyuen 0 3,411 06-03-2020, 05:44 PM
Last Post: lupyuen
  Firmware Update over Bluetooth LE lupyuen 2 4,273 05-16-2020, 02:17 AM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)