
Loading…
I see the code to write PEBBLE_ADDRESS to the shared preferences is located here:
Any reason this wouldn't get called (or get called but still have an empty value) sometime before the watch is able to make HTTP requests?
Figured it out. If you install the HTTPebble app but don't disconnect and reconnect the Pebble, you never execute the PebbleConnectionReceiver code that stores the Pebble ID in shared preferences. Once you do that you're good to go.
Is there no way to set this upon app install if a Pebble is already connected?
Not that I know of, the only place you can get a Pebble serial from PebbleKit that I know of is in the connect intent.
I read requests from httpebble via a server I run and sometimes X-PEBBLE-ID comes back empty, like when I read it here:
https://code.google.com/p/ariwilson/source/browse/PebbleScores/pebblescores.py#68
Is there a reason for this? I know this happened on my Nexus 4 for a while until I played with some settings :-/.
Thanks!