Comparing to the pebble app's source, I'd by far prefer the following:

    pack('!bi', 1, -1)

It makes it clear the magic value consists of two values rather than a single string - hopefully we can get Team Pebble to tell us what/why those values are there :)