encodeValue() {
    var msg = '';
    var tail =
      CHAR_HIGH + CHAR_SEPERATOR +
      CHAR_LOW + CHAR_SEPERATOR +
      this.speed + CHAR_SEPERATOR + CHAR_TERMINATOR;

    if (this.value) {
      /**
       * The 'regular' TAIL did not work for me anymore, found out this one
       * does a ggod job, do not know why ...
       */
      tail =
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        this.speed + CHAR_SEPERATOR + CHAR_TERMINATOR;

      msg =
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_HIGH + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_HIGH + CHAR_SEPERATOR +
        CHAR_HIGH + CHAR_SEPERATOR +
        tail;
    } else {
      msg =
        CHAR_HIGH + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_HIGH + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        tail;
    }
    return msg;
  }
/**
   * Encode value to Message
   *
   * I am absolutly unclear what I am doing here! I have just played arround
   * with some values until it worked for me. If it would be great if anybody
   * could help out at this point.
   * TODO: Review
   *
   * @returns {String}
   */
Encode value to Message
I am absolutly unclear what I am doing here. I have just played arround
with some values until it worked for me. If it would be great if anybody
could help out at this point.
TODO: Review

@returns {String}
Encode value to Message I am absolutly unclear what I am doing here . I have just played arround with some values until it worked for me . If it would be great if anybody could help out at this point . TODO : Review @returns { String }
encodeValue() {
    var msg = '';
    var tail =
      CHAR_HIGH + CHAR_SEPERATOR +
      CHAR_LOW + CHAR_SEPERATOR +
      this.speed + CHAR_SEPERATOR + CHAR_TERMINATOR;
    if (this.value) {
      tail =
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        this.speed + CHAR_SEPERATOR + CHAR_TERMINATOR;
      msg =
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_HIGH + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_HIGH + CHAR_SEPERATOR +
        CHAR_HIGH + CHAR_SEPERATOR +
        tail;
    } else {
      msg =
        CHAR_HIGH + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        CHAR_HIGH + CHAR_SEPERATOR +
        CHAR_LOW + CHAR_SEPERATOR +
        tail;
    }
    return msg;
  }
encodeValue ( ) { var msg = '' ; var tail = CHAR_HIGH + CHAR_SEPERATOR + CHAR_LOW + CHAR_SEPERATOR + this . speed + CHAR_SEPERATOR + CHAR_TERMINATOR ; if ( this . value ) { tail = CHAR_LOW + CHAR_SEPERATOR + CHAR_LOW + CHAR_SEPERATOR + this . speed + CHAR_SEPERATOR + CHAR_TERMINATOR ; msg = CHAR_LOW + CHAR_SEPERATOR + CHAR_HIGH + CHAR_SEPERATOR + CHAR_LOW + CHAR_SEPERATOR + CHAR_HIGH + CHAR_SEPERATOR + CHAR_HIGH + CHAR_SEPERATOR + tail ; } else { msg = CHAR_HIGH + CHAR_SEPERATOR + CHAR_LOW + CHAR_SEPERATOR + CHAR_LOW + CHAR_SEPERATOR + CHAR_HIGH + CHAR_SEPERATOR + CHAR_LOW + CHAR_SEPERATOR + tail ; } return msg ; }
Encode value to Message
 I am absolutly unclear what I am doing here!
Encode value to Message I am absolutly unclear what I am doing here!
/**
       * The 'regular' TAIL did not work for me anymore, found out this one
       * does a ggod job, do not know why ...
       */