pub fn write_to_device(printer: &str, payload: &str) -> Result<(), Error>