Protocol handler (write function) for encoders added