8 years, 9 months ago.

LoRa EUI

Does anyone know how I can get the LoRa EUI or some other unique ID out of a mDot?

I'm using the mDot lib, not the AT commands.

thanks

-H

Post Script after a bit of suffing around, I've come up with this that seems to work:

void GetMyID()
{
    mDot* dot = mDot::getInstance();    
    std::vector<uint8_t> unitID = dot->getDeviceId();    
    char EUI[20];
    char Id[2];
    string Ident;
    
    for(int n = 0; n < 8; n++)
    {
        sprintf(Id,"%02X",unitID[n]);
        strcat (EUI,Id);
    }
    Ident = EUI;
    debug.printf("UID = %s \r\n",Ident.c_str());
}

Be the first to answer this question.