code: function encodeTlv(path, value) {
      var pathType = cutils.getPathDateType(path),
          pathArray,
          data;
  
      path = cutils.getNumPath(path);
      pathArray = cutils.getPathArray(path);
  
      switch (pathType) {
          case 'object':
              data = encodeTlvPacket('object', path, pathArray[0], value);
              break;
  
          case 'instance':
              data = encodeTlvPacket('instance', path, pathArray[1], value);
              break;
  
          case 'resource':
              if (_.isPlainObject(value)) {
                  data = encodeTlvPacket('multiResrc', path, pathArray[2], value);
              } else {
                  data = encodeTlvPacket('resource', path, pathArray[2], value);
              }
              break;
  
          default:
              break;
      }
  
      return data;
  }
docs: *******************************************************
  Tlv                                                   *
  *******************************************************