pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

Pebble C API

  • Pebble C API
  • Moddable API (Alloy)
  • PebbleKit JS
  • PebbleKit iOS
  • PebbleKit Android
  • Foundation
    • Alloy
    • App
    • App Communication
    • App Glance
    • AppMessage
    • AppSync
    • AppWorker
    • DataLogging
    • DataStructures
      • UUID
    • Dictation
    • Dictionary
    • Event Service
      • AccelerometerService
      • AlarmService
      • AppFocusService
      • BacklightService
      • BatteryStateService
      • CompassService
      • ConnectionService
      • HealthService
      • TickTimerService
      • TouchService
    • Exit Reason
    • Internationalization
    • Launch Reason
    • Logging
    • Math
    • Memory Management
    • Platform
    • Resources
      • File Formats
    • Storage
    • Timer
    • Wakeup
    • Wall Time
    • WatchInfo
  • Graphics
    • Draw Commands
    • Drawing Paths
    • Drawing Primitives
    • Drawing Text
    • Fonts
    • Graphics Context
    • Graphics Types
      • Color Definitions
  • User Interface
    • Animation
      • PropertyAnimation
    • Clicks
    • Gesture Recognizers
    • Layers
      • ActionBarLayer
      • BitmapLayer
      • MenuLayer
      • RotBitmapLayer
      • ScrollLayer
      • SimpleMenuLayer
      • StatusBarLayer
      • TextLayer
    • Light
    • Preferences
    • Speaker
    • UnobstructedArea
    • Vibes
    • Window
      • ActionMenu
      • NumberWindow
    • Window Stack
  • Worker
  • Standard C
    • Format
    • Locale
    • Math
    • Memory
    • String
    • Time

WatchInfo

Provides information about the watch itself.

This API provides access to information such as the watch model, watch color and watch firmware version.

Function Documentation

WatchInfoModel watch_info_get_model(void)

Provides the model of the watch.

Returns

WatchInfoModel representing the model of the watch.

WatchInfoVersion watch_info_get_firmware_version(void)

Provides the version of the firmware running on the watch.

Returns

WatchInfoVersion representing the version of the firmware running on the watch.

WatchInfoColor watch_info_get_color(void)

Data Structure Documentation

struct WatchInfoVersion

Data structure containing the version of the firmware running on the watch. The version of the firmware has the form X.[X.[X]]. If a version number is not present it will be 0. For example: the version numbers of 2.4.1 are 2, 4, and 1. The version numbers of 2.4 are 2, 4, and 0.

Data Fields

uint8_t major

Major version number.

uint8_t minor

Minor version number.

uint8_t patch

Patch version number.

Enum Documentation

enum WatchInfoModel

The different watch models.

Enumerators

WATCH_INFO_MODEL_UNKNOWN

Unknown model.

WATCH_INFO_MODEL_PEBBLE_ORIGINAL

Original Pebble.

WATCH_INFO_MODEL_PEBBLE_STEEL

Pebble Steel.

WATCH_INFO_MODEL_PEBBLE_TIME

Pebble Time.

WATCH_INFO_MODEL_PEBBLE_TIME_STEEL

Pebble Time Steel.

WATCH_INFO_MODEL_PEBBLE_TIME_ROUND_14

Pebble Time Round, 14mm lug size.

WATCH_INFO_MODEL_PEBBLE_TIME_ROUND_20

Pebble Time Round, 20mm lug size.

WATCH_INFO_MODEL_PEBBLE_2_HR

Pebble 2 HR.

WATCH_INFO_MODEL_PEBBLE_2_SE

Pebble 2 SE.

WATCH_INFO_MODEL_PEBBLE_TIME_2

Pebble Time 2.

WATCH_INFO_MODEL_COREDEVICES_P2D

CoreDevices P2D (Pebble 2 Duo)

WATCH_INFO_MODEL_COREDEVICES_PT2

CoreDevices PT2 (Pebble Time 2)

WATCH_INFO_MODEL_COREDEVICES_PR2

CoreDevices PR2 (Pebble Round 2)

WATCH_INFO_MODEL__MAX
enum WatchInfoColor

The different watch colors.

Enumerators

WATCH_INFO_COLOR_UNKNOWN

Unknown color.

WATCH_INFO_COLOR_BLACK

Black.

WATCH_INFO_COLOR_WHITE

White.

WATCH_INFO_COLOR_RED

Red.

WATCH_INFO_COLOR_ORANGE

Orange.

WATCH_INFO_COLOR_GRAY

Gray.

WATCH_INFO_COLOR_STAINLESS_STEEL

Stainless Steel.

WATCH_INFO_COLOR_MATTE_BLACK

Matte Black.

WATCH_INFO_COLOR_BLUE

Blue.

WATCH_INFO_COLOR_GREEN

Green.

WATCH_INFO_COLOR_PINK

Pink.

WATCH_INFO_COLOR_TIME_WHITE

Time White.

WATCH_INFO_COLOR_TIME_BLACK

Time Black.

WATCH_INFO_COLOR_TIME_RED

Time Red.

WATCH_INFO_COLOR_TIME_STEEL_SILVER

Time Steel Silver.

WATCH_INFO_COLOR_TIME_STEEL_BLACK

Time Steel Black.

WATCH_INFO_COLOR_TIME_STEEL_GOLD

Time Steel Gold.

WATCH_INFO_COLOR_TIME_ROUND_SILVER_14

Time Round 14mm lug size, Silver.

WATCH_INFO_COLOR_TIME_ROUND_BLACK_14

Time Round 14mm lug size, Black.

WATCH_INFO_COLOR_TIME_ROUND_SILVER_20

Time Round 20mm lug size, Silver.

WATCH_INFO_COLOR_TIME_ROUND_BLACK_20

Time Round 20mm lug size, Black.

WATCH_INFO_COLOR_TIME_ROUND_ROSE_GOLD_14

Time Round 14mm lug size, Rose Gold.

WATCH_INFO_COLOR_PEBBLE_2_HR_BLACK

Pebble 2 HR, Black / Charcoal.

WATCH_INFO_COLOR_PEBBLE_2_HR_LIME

Pebble 2 HR, Charcoal / Sorbet Green.

WATCH_INFO_COLOR_PEBBLE_2_HR_FLAME

Pebble 2 HR, Charcoal / Red.

WATCH_INFO_COLOR_PEBBLE_2_HR_WHITE

Pebble 2 HR, White / Gray.

WATCH_INFO_COLOR_PEBBLE_2_HR_AQUA

Pebble 2 HR, White / Turquoise.

WATCH_INFO_COLOR_PEBBLE_2_SE_BLACK

Pebble 2 SE, Black / Charcoal.

WATCH_INFO_COLOR_PEBBLE_2_SE_WHITE

Pebble 2 SE, White / Gray.

WATCH_INFO_COLOR_PEBBLE_TIME_2_BLACK

Pebble Time 2, Black.

WATCH_INFO_COLOR_PEBBLE_TIME_2_SILVER

Pebble Time 2, Silver.

WATCH_INFO_COLOR_PEBBLE_TIME_2_GOLD

Pebble Time 2, Gold.

WATCH_INFO_COLOR_COREDEVICES_P2D_BLACK

CoreDevices P2D, Black.

WATCH_INFO_COLOR_COREDEVICES_P2D_WHITE

CoreDevices P2D, White.

WATCH_INFO_COLOR_COREDEVICES_PT2_BLACK_GREY

CoreDevices PT2, Black/Grey.

WATCH_INFO_COLOR_COREDEVICES_PT2_BLACK_RED

CoreDevices PT2, Black/Red.

WATCH_INFO_COLOR_COREDEVICES_PT2_SILVER_BLUE

CoreDevices PT2, Silver/Blue.

WATCH_INFO_COLOR_COREDEVICES_PT2_SILVER_GREY

CoreDevices PT2, Silver/Grey.

WATCH_INFO_COLOR_COREDEVICES_PR2_BLACK_20

CoreDevices PR2, Black (20mm)

WATCH_INFO_COLOR_COREDEVICES_PR2_SILVER_20

CoreDevices PR2, Silver (20mm)

WATCH_INFO_COLOR_COREDEVICES_PR2_GOLD_14

CoreDevices PR2, Gold (14mm)

WATCH_INFO_COLOR_COREDEVICES_PR2_SILVER_14

CoreDevices PR2, Silver (14mm)

WATCH_INFO_COLOR__MAX

Need some help?

Functions

  • watch_info_get_model
  • watch_info_get_firmware_version
  • watch_info_get_color

Data Structures

  • WatchInfoVersion

Enums

  • WatchInfoModel
  • WatchInfoColor

Getting Help

Do you have questions about the Pebble SDK?

Do you need some help understanding something on this page?

Ask on the developer forum.