Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

X-PEBBLE-ID sometimes empty #5

Closed
evilrobot69 opened this Issue · 4 comments

2 participants

@evilrobot69

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!

@evilrobot69

I see the code to write PEBBLE_ADDRESS to the shared preferences is located here:

https://github.com/lkorth/httpebble-android/blob/master/httpebble/src/com/lukekorth/httpebble/receivers/PebbleConnectionReceiver.java#L19

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?

@evilrobot69

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.

@lkorth lkorth closed this
@evilrobot69

Is there no way to set this upon app install if a Pebble is already connected?

@lkorth
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.