func (s SerialChannel) Write(req api.WriteRequest) { content := req.Get("content").(string) s.serial.Write([]byte(content)) }