code: function getPendingPacket(ls){
  		var i;
  		for (i = pendingPackets.length - 1; i >= 0; i--)
  			if (pendingPackets[i].header.ls == ls)
  				return pendingPackets[i];
  	}
docs: When an error is encountered during communication, this event will be fired.
  @event Device#error
  @type {Error}
  @property {String} Message
   
  Find a pending packet by local sequence number
  @param {Number} ls Local sequence number
  @return {UserPacket} The packet