pebble-sdk

Xamarin Obj-C Framework Binding (PebbleKit iOS)

微笑、不失礼 提交于 2019-12-06 11:15:30
I try to Bind this (PebbleKit.Framework) Framework to C# with Objecttive Sharpie on the command line. sharpie bind -o Binding -f PebbleKit.Framework -sdk iphoneos8.4 This is working without errors, but how do I get it to bind all Header Files? I just get 3 partial interfaces with name constants (with Verify Attribute). And some NSNumber from PBWatch+Sports.h for Example extern NSNumber *PBSportsTimeKey; Do I have to bind methods and classes manually? 来源: https://stackoverflow.com/questions/32072363/xamarin-obj-c-framework-binding-pebblekit-ios

JSON won't compile, gives: “Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['” error

亡梦爱人 提交于 2019-12-06 04:42:10
问题 Can someone please tell me whats wong with this code? Ive tried everything and don't know why it keeps giving me this error: Parse error on line 3: ...", "shortName": “Simple”, "longN ----------------------------------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[' { "uuid": "13371337-d579-4d75-a5c5-8dfcfe110f62", "shortName": “Simple”, "longName": “Simple”, "companyName": “pjtnt11”, "versionCode": 1, "versionLabel": “1.7”, "watchapp": { "watchface": true },

How to store byte arrays in C?

我与影子孤独终老i 提交于 2019-12-04 05:05:12
问题 This seems such a basic question, but I cannot find an answer anywhere on SO. I know that C/C++ do not have a byte datatype. I know that sizeof(char) == 1 . I'm trying to store 12 transmissions, each of 96 bytes on Pebble, as transmitted from my Android app. Due to limitation in the transmission size, I'm sending one at a time. Each one should be 'appended' to the last, as they should end up forming sequential space in memory, for reading as an image (one bit per pixel). I'm trying to do

Developers Option in Pebble App Settings

ぐ巨炮叔叔 提交于 2019-12-02 17:07:30
问题 I am following this manual and I don't have the Developers Option in my Pebble App Setting when I look at Application Manager. Any idea why is that and how I can find it? I have a Samsung Galaxy S6. Pebble app > Settings > Developer Options and tick Enable Developer Connection . There's no such 3 lines for the app setting as shown in this link. 回答1: The manual you linked to seems to be the right set of steps. The screenshot you posted though indicates you do not have a Pebble connected, which

How to store byte arrays in C?

老子叫甜甜 提交于 2019-12-02 06:54:40
This seems such a basic question, but I cannot find an answer anywhere on SO. I know that C/C++ do not have a byte datatype. I know that sizeof(char) == 1 . I'm trying to store 12 transmissions, each of 96 bytes on Pebble, as transmitted from my Android app. Due to limitation in the transmission size, I'm sending one at a time. Each one should be 'appended' to the last, as they should end up forming sequential space in memory, for reading as an image (one bit per pixel). I'm trying to do something like this: int transNum = 0; uint8_t image[][] = new uint8t[12][12] //not sure about uint8_t, and

Including an external javascript library in pebble js file?

梦想与她 提交于 2019-12-01 23:03:29
问题 Is there any way I can include an external JS library in my pebble code? Conventionally on a webpage I would do this in my head tags: <script type='text/javascript' src='https://cdn.firebase.com/js/client/1.0.11/firebase.js'></script> But in pebble, I am unable to do that since I am only using JS. So how can I include an external library for a JavaScript file. 回答1: At present, you cannot include external JS files. If you're using CloudPebble, then the only way to do this is to copy and paste

What does this dot syntax mean in the Pebble watch development tutorial? [duplicate]

南楼画角 提交于 2019-12-01 22:56:01
问题 This question already has answers here : What does dot (.) mean in a struct initializer? (3 answers) Closed 5 years ago . I came across following code in Pebble watch app development tutorial: // Set handlers to manage the elements inside the Window window_set_window_handlers(s_main_window, (WindowHandlers) { .load = main_window_load, .unload = main_window_unload }); I cant understand this assignment to .load and .unload. Is this standard C? I don't think I have ever seen similar syntax

What does this dot syntax mean in the Pebble watch development tutorial? [duplicate]

你说的曾经没有我的故事 提交于 2019-12-01 22:11:58
This question already has an answer here: What does dot (.) mean in a struct initializer? 3 answers I came across following code in Pebble watch app development tutorial: // Set handlers to manage the elements inside the Window window_set_window_handlers(s_main_window, (WindowHandlers) { .load = main_window_load, .unload = main_window_unload }); I cant understand this assignment to .load and .unload. Is this standard C? I don't think I have ever seen similar syntax before. This is standard c99. It is combining compound literals (WindowHandlers) {} and designated initializers .load = main

Logging enums on the pebble watch

折月煮酒 提交于 2019-11-28 11:09:18
When i log an error on the Pebble like this: static void message_dropped(AppMessageResult reason, void *context) { APP_LOG(APP_LOG_LEVEL_DEBUG, "Message dropped. Reason: %d", reason); } i just get the int value of the error message. Is there an easy way to log the text of the enum? Like: static void message_dropped(AppMessageResult reason, void *context) { APP_LOG(APP_LOG_LEVEL_DEBUG, "Message dropped. Reason: %fancy", reason); } // Would return "APP_MSG_BUFFER_OVERFLOW" There is no API function to do that. You can use this function for the AppMessageResult enum: char *translate_error

Logging enums on the pebble watch

霸气de小男生 提交于 2019-11-27 06:05:23
问题 When i log an error on the Pebble like this: static void message_dropped(AppMessageResult reason, void *context) { APP_LOG(APP_LOG_LEVEL_DEBUG, "Message dropped. Reason: %d", reason); } i just get the int value of the error message. Is there an easy way to log the text of the enum? Like: static void message_dropped(AppMessageResult reason, void *context) { APP_LOG(APP_LOG_LEVEL_DEBUG, "Message dropped. Reason: %fancy", reason); } // Would return "APP_MSG_BUFFER_OVERFLOW" 回答1: There is no API