Skip to content
Discussion options

You must be logged in to vote

You're right about PKJS—the JavaScript runtime in the mobile app never exposed the data logging callbacks; that was strictly implemented in native PebbleKit on Android (PebbleKit.registerDataLogReceiver) and iOS (PBDataLoggingService).

Regarding retaining data and phone-side sync:

1. Watch flash vs the 4 kB limit
The 4 kB cap on persist_write_* is purely a software quota enforced by PFS (Pebble File System) to keep individual app KV stores from monopolizing flash sectors. The DataLogging subsystem itself actually spools directly into dedicated circular buffer sectors on the SPI NOR flash (often 64–128 kB depending on firmware platform partitions). From an OS design perspective, exposing a…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ATLURI0001
Comment options

Answer selected by ghollingworth
@ghollingworth
Comment options

@ATLURI0001
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants