Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F firmware
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 29
    • Merge requests 29
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • card10card10
  • firmware
  • Merge requests
  • !406

Read date/time from iOS device

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged schneider requested to merge schneider/ble-time into master Oct 11, 2020
  • Overview 5
  • Commits 6
  • Pipelines 4
  • Changes 9

This implements reading date and time via the Current Time Service BLE service.

This service is offered by iOS devices and allows to read date, time, timezone and DST information from the central device. At the moment this is done when connecting the first time.

I've tested this with a very old iPad as I don't have access to an iPhone. The issue is that I had do disable almost all current security features to pair with the old iPad and I'm not convinced that the setting of bleDiscCfg is chosen correctly:

/*! Configurable parameters for service and characteristic discovery */
static const appDiscCfg_t bleDiscCfg =
{
  FALSE                                   /*! TRUE to wait for a secure connection before initiating discovery */
};
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: schneider/ble-time