adding function when setting the ownDevice.ID to deviceID if the ownDeviceID is not set.