Skip to content

Instantly share code, notes, and snippets.

@ngsmrk
Created May 11, 2014 20:17
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 ngsmrk/7e83c7b6caf46d676c48 to your computer and use it in GitHub Desktop.
Save ngsmrk/7e83c7b6caf46d676c48 to your computer and use it in GitHub Desktop.
pebble_4
static void in_received_handler(DictionaryIterator *iter, void *context) {
APP_LOG(APP_LOG_LEVEL_DEBUG, "App Message Received");
Tuple *word_tuple = dict_find(iter, QUOTE_KEY_INIT);
strncpy(word, word_tuple->value->cstring, 100);
text_layer_set_text(text_layer, word);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment