Pebble App Framework: Phone API
    Preparing search index...

    Variable WIRE_CAPSConst

    WIRE_CAPS: {
        CALENDAR_LOC_MAX: 16;
        CALENDAR_SLOTS_MAX: 6;
        CALENDAR_TITLE_MAX: 24;
        FORECAST_COLS_MAX: 8;
        FORECAST_NO_TEMP: -1000;
        MUSIC_ART_COLOURS_MAX: 16;
        MUSIC_ART_SIDE_MAX: 100;
        MUSIC_TEXT_MAX: 32;
        NO_PLUGIN_MARKER: -2;
        PHONE_NO_LEVEL: -1;
        SETTINGS_REQUEST_FRESH: 2;
        SETTINGS_REQUEST_FULL: 1;
        STOCK_LABEL_MAX: 11;
        STOCK_SLOTS_MAX: 4;
    } = ...

    Every cap and marker value the two sides of a strip have to agree on.

    The watch reads these back out of c/core/wire/wire_caps.g.h, which npm run build:conditions writes from this table. They are the numbers a decode is bounds-checked against, so a pair that drifted would truncate a strip or refuse a whole message with nothing to show for it.

    A text cap here counts characters. The C side gets that plus one, because its buffer has to hold a terminator as well.

    Type Declaration

    • ReadonlyCALENDAR_LOC_MAX: 16

      How long an event location can be, in characters.

    • ReadonlyCALENDAR_SLOTS_MAX: 6

      How many events the agenda strip can carry.

    • ReadonlyCALENDAR_TITLE_MAX: 24

      How long an event title can be, in characters.

    • ReadonlyFORECAST_COLS_MAX: 8

      How many columns a forecast strip can carry. The watch re-clamps the count anyway, so slicing here just keeps the count byte honest and the packer in step with the other two.

    • ReadonlyFORECAST_NO_TEMP: -1000

      A forecast column with no reading ships this marker so the watch draws a placeholder.

    • ReadonlyMUSIC_ART_COLOURS_MAX: 16

      How many colours now playing art's palette can hold, which is all a 4-bit pixel can name.

    • ReadonlyMUSIC_ART_SIDE_MAX: 100

      How wide or tall now playing art can be, in pixels, so the largest still fits a watch's inbox.

    • ReadonlyMUSIC_TEXT_MAX: 32

      How long a now playing title or artist can be, in characters.

    • ReadonlyNO_PLUGIN_MARKER: -2

      Sent in place of a plugin reading while nothing on the phone serves it, so the watch can tell a missing plugin from a reading still to come. The phone's battery carries it as its level, and now playing as its playing flag.

    • ReadonlyPHONE_NO_LEVEL: -1

      The phone's battery level for no reading, such as before the plugin's first update.

    • ReadonlySETTINGS_REQUEST_FRESH: 2

      A settings request for only whether the watch booted with nothing saved.

    • ReadonlySETTINGS_REQUEST_FULL: 1

      A settings request for the watch's whole snapshot, to seed the settings page from.

    • ReadonlySTOCK_LABEL_MAX: 11

      How wide a watchlist label is, in characters.

    • ReadonlySTOCK_SLOTS_MAX: 4

      How many tickers the watchlist strip can carry.