pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • Examples
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

Pebble C API

  • Pebble C API
  • Pebble JavaScript API
  • PebbleKit JS
  • PebbleKit iOS
  • PebbleKit Android
  • Foundation
    • App
    • App Communication
    • App Glance
    • AppMessage
    • AppSync
    • AppWorker
    • DataLogging
    • DataStructures
      • UUID
    • Dictation
    • Dictionary
    • Event Service
      • AccelerometerService
      • AppFocusService
      • BatteryStateService
      • CompassService
      • ConnectionService
      • HealthService
      • TickTimerService
    • Exit Reason
    • Internationalization
    • Launch Reason
    • Logging
    • Math
    • Memory Management
    • Platform
    • Resources
      • File Formats
    • Storage
    • Timer
    • Wakeup
    • Wall Time
    • WatchInfo
    • Rocky
  • Graphics
    • Draw Commands
    • Drawing Paths
    • Drawing Primitives
    • Drawing Text
    • Fonts
    • Graphics Context
    • Graphics Types
      • Color Definitions
  • User Interface
    • Animation
      • PropertyAnimation
    • Clicks
    • Layers
      • ActionBarLayer
      • BitmapLayer
      • MenuLayer
      • RotBitmapLayer
      • ScrollLayer
      • SimpleMenuLayer
      • StatusBarLayer
      • TextLayer
    • Light
    • Preferences
    • UnobstructedArea
    • Vibes
    • Window
      • ActionMenu
      • NumberWindow
    • Window Stack
  • 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.

  • SDK 3
  • SDK 4
WatchInfoColor watch_info_get_color(void)

Provides the color of the watch.

Returns

WatchInfoColor representing the color of 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__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__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?

You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can send us a message through the website!