static buildManufacturerId(name) {
    if (name === undefined || name.length < 3 || name.length > 3)
      return false;

    // Make sure name is uppercase
    name = name.toUpperCase();

    // Build name
    let label = (name.charCodeAt(0) - 64) * 32 * 32 +
                (name.charCodeAt(1) - 64) * 32 +
                (name.charCodeAt(2) - 64);

    return (0x0421 <= label && label <= 0x6b5a) ?
      Buffer.alloc(2, label.toString(16), 'hex') : false;
  }
/**
  * Build manufacturer id.
  *
  * @param name
  *   Manufacturer name with three letter, for example "KAM" for Kamstrup.
  * @return id
  *   Buffer for manufacturer id of false
  */
Build manufacturer id.
@param name
Manufacturer name with three letter, for example "KAM" for Kamstrup.
@return id
Buffer for manufacturer id of false
Build manufacturer id . @param name Manufacturer name with three letter for example " KAM " for Kamstrup . @return id Buffer for manufacturer id of false
static buildManufacturerId(name) {
    if (name === undefined || name.length < 3 || name.length > 3)
      return false;
    name = name.toUpperCase();
    let label = (name.charCodeAt(0) - 64) * 32 * 32 +
                (name.charCodeAt(1) - 64) * 32 +
                (name.charCodeAt(2) - 64);
    return (0x0421 <= label && label <= 0x6b5a) ?
      Buffer.alloc(2, label.toString(16), 'hex') : false;
  }
static buildManufacturerId ( name ) { if ( name === undefined || name . length < 3 || name . length > 3 ) return false ; name = name . toUpperCase ( ) ; let label = ( name . charCodeAt ( 0 ) - 64 ) * 32 * 32 + ( name . charCodeAt ( 1 ) - 64 ) * 32 + ( name . charCodeAt ( 2 ) - 64 ) ; return ( 0x0421 <= label && label <= 0x6b5a ) ? Buffer . alloc ( 2 , label . toString ( 16 ) , 'hex' ) : false ; }
Build manufacturer id.
Build manufacturer id .
// Make sure name is uppercase // Build name