mqtt.cpp
Mqtt_Helper::Mqtt_Helper(String ID="") {

    // check if an id was given or id is ok
    if (ID == "" || ID.length() != 6) { // no id given or bad id
        // generate a random id
        _ID = "ABCDEF";
    } else {
        _ID = ID;
    }
}
/*
Create the helper object
Giving it a unique id
*/
Create the helper object
Giving it a unique id
Create the helper object Giving it a unique id
Mqtt_Helper::Mqtt_Helper(String ID="") {
    if (ID == "" || ID.length() != 6) { 
        _ID = "ABCDEF";
    } else {
        _ID = ID;
    }
}
Mqtt_Helper :: Mqtt_Helper ( String ID = " " ) { if ( ID == " " || ID . length ( ) != 6 ) { _ID = " " ; } else { _ID = ID ; } }
Create the helper object
Giving it a unique id
Create the helper object Giving it a unique id
// check if an id was given or id is ok // no id given or bad id // generate a random id