PebbleKit JS library for sending messages to your Pebble.
Automatically retries sending messages when they fail, and ensures that messages are sent in order (i.e. wait for first message to be acknowledged before sending the second message.
- Include js-message-queue.min.js in your Pebble JS file, either by copying and pasting it into the top of pebble-js-app.js, or by adding it to your JS build script.
- Replace all instances of
Pebble.sendAppMessage()
withMessageQueue.sendAppMessage()
. - Profit!