Last active
December 20, 2015 14:09
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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