MMGDevice: add an optional uid attribute