 
             if stopBit != -1
               buffer = concatenate(buffer, data.slice(0, stopBit))
-              process(buffer)
+              processData(buffer)
               buffer = data.slice(stopBit + 1)
             else
               buffer = concatenate(buffer, data)

        console.log "disconnected, retrying..."
        setTimeout(connect, 100)

      peripheral.on "connect", -> peripheral.discoverServices ["2220"]

      buffer = new Buffer(0)


          timeInSeconds = data.readUInt32BE(12)
          value = data.readUInt16BE(16)
          console.log("#{name}: #{timeInSeconds}, #{value}")
#        else
#          console.log "failed to parse message #{data.toString()} - expected integer messages to be length 18 but was #{data.length}"

      else if format == 'F'
        if data.length == 20
