refactoring length to timeout

https://github.com/pebble/libpebble-dev/pull/2