getByMacOrSave

open suspend fun getByMacOrSave(mac: String, name: String): DeviceEntity

Return

DeviceEntity by mac address if it is present in database, newly saved DeviceEntity otherwise

Parameters

mac

device mac address

name

device name