Skip to content

Instantly share code, notes, and snippets.

@matthewtole
Last active December 20, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewtole/6144056 to your computer and use it in GitHub Desktop.
Save matthewtole/6144056 to your computer and use it in GitHub Desktop.
How to simply define your UUID for Pebble apps that use httpebble in a way that makes it easy to switch between Android and iOS versions.
// To make multi-version compilation simple, these type of config defines
// should be put in an external file, such as config.h
#define ANDROID false
// If this app is being compiled for Android, use a unique UUID that uses the
// httpebble prefix, otherwise you'll have to use the common UUID
// that is defined in http.h
#if ANDROID
#define MY_UUID { 0x91, 0x41, 0xB6, 0x28, 0xBC, 0x89, 0x49, 0x8E, 0xB1, 0x47, 0xD8, 0x14, 0xF0, 0x16, 0x02, 0x14 }
#else
#define MY_UUID HTTP_UUID
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment