ble/services/EddystoneService.h
unsigned constructUIDFrame(uint8_t *Data, uint8_t maxSize) {
        unsigned index = 0;

        Data[index++] = FRAME_TYPE_UID;                     // 1B  Type

        if (defaultUidPower > 20) {
            defaultUidPower = 20;                           // enforce range of vaild values.
        }
        if (defaultUidPower < -100) {
            defaultUidPower = -100;
        }
        Data[index++] = defaultUidPower;                    // 1B  Power @ 0meter

        DBG("UID NamespaceID = '0x");
        for (size_t x = 0; x < UID_NAMESPACEID_SIZE; x++) { // 10B Namespace ID
            Data[index++] = defaultUidNamespaceID[x];
            DBG("%x,", defaultUidNamespaceID[x]);
        }
        DBG("'\r\n");

        DBG("UID InstanceID = '0x");
        for (size_t x = 0; x< UID_INSTANCEID_SIZE; x++) {   // 6B  Instance ID
            Data[index++] = defaultUidInstanceID[x];
            DBG("%x,", defaultUidInstanceID[x]);
        }
        DBG("'\r\n");

        if (0 != uidRFU) {                                  // 2B RFU, include if non-zero, otherwise ignore
            Data[index++] = (uint8_t)(uidRFU >> 0);
            Data[index++] = (uint8_t)(uidRFU >> 8);
        }
        DBG("construcUIDFrame %d, %d", maxSize, index);
        return index;
    }
/*
    *  Construct UID frame from private variables
    *  @param[in/out] Data pointer to array to store constructed frame in
    *  @param[in] maxSize number of bytes left in array, effectively how much empty space is available to write to
    *  @return number of bytes used. negative number indicates error message.
    */
Construct UID frame from private variables
@param[in/out] Data pointer to array to store constructed frame in
@param[in] maxSize number of bytes left in array, effectively how much empty space is available to write to
@return number of bytes used. negative number indicates error message.
Construct UID frame from private variables @param [ in / out ] Data pointer to array to store constructed frame in @param [ in ] maxSize number of bytes left in array effectively how much empty space is available to write to @return number of bytes used . negative number indicates error message .
unsigned constructUIDFrame(uint8_t *Data, uint8_t maxSize) {
        unsigned index = 0;
        Data[index++] = FRAME_TYPE_UID;                     
        if (defaultUidPower > 20) {
            defaultUidPower = 20;                           
        }
        if (defaultUidPower < -100) {
            defaultUidPower = -100;
        }
        Data[index++] = defaultUidPower;                    
        DBG("UID NamespaceID = '0x");
        for (size_t x = 0; x < UID_NAMESPACEID_SIZE; x++) { 
            Data[index++] = defaultUidNamespaceID[x];
            DBG("%x,", defaultUidNamespaceID[x]);
        }
        DBG("'\r\n");
        DBG("UID InstanceID = '0x");
        for (size_t x = 0; x< UID_INSTANCEID_SIZE; x++) {   
            Data[index++] = defaultUidInstanceID[x];
            DBG("%x,", defaultUidInstanceID[x]);
        }
        DBG("'\r\n");
        if (0 != uidRFU) {                                  
            Data[index++] = (uint8_t)(uidRFU >> 0);
            Data[index++] = (uint8_t)(uidRFU >> 8);
        }
        DBG("construcUIDFrame %d, %d", maxSize, index);
        return index;
    }
unsigned constructUIDFrame ( uint8_t * Data , uint8_t maxSize ) { unsigned index = 0 ; Data [ index ++ ] = FRAME_TYPE_UID ; if ( defaultUidPower > 20 ) { defaultUidPower = 20 ; } if ( defaultUidPower < -100 ) { defaultUidPower = -100 ; } Data [ index ++ ] = defaultUidPower ; DBG ( " " ) ; for ( size_t x = 0 ; x < UID_NAMESPACEID_SIZE ; x ++ ) { Data [ index ++ ] = defaultUidNamespaceID [ x ] ; DBG ( " " , defaultUidNamespaceID [ x ] ) ; } DBG ( " \r \n " ) ; DBG ( " " ) ; for ( size_t x = 0 ; x < UID_INSTANCEID_SIZE ; x ++ ) { Data [ index ++ ] = defaultUidInstanceID [ x ] ; DBG ( " " , defaultUidInstanceID [ x ] ) ; } DBG ( " \r \n " ) ; if ( 0 != uidRFU ) { Data [ index ++ ] = ( uint8_t ) ( uidRFU >> 0 ) ; Data [ index ++ ] = ( uint8_t ) ( uidRFU >> 8 ) ; } DBG ( " " , maxSize , index ) ; return index ; }
Construct UID frame from private variables
  @param[in/out] Data pointer to array to store constructed frame in
  @param[in] maxSize number of bytes left in array, effectively how much empty space is available to write to
  @return number of bytes used.
Construct UID frame from private variables @param [ in / out ] Data pointer to array to store constructed frame in @param [ in ] maxSize number of bytes left in array effectively how much empty space is available to write to @return number of bytes used .
// 1B  Type // enforce range of vaild values. // 1B  Power @ 0meter // 10B Namespace ID // 6B  Instance ID // 2B RFU, include if non-zero, otherwise ignore