I have to view the thing-url-adapter source code。 And know that mdns does not support different network segments.
function loadThingURLAdapter(addonManager, manifest, _errorCallback) {
const adapter = new ThingURLAdapter(addonManager, manifest.name);
for (const url of manifest.moziot.config.urls) {
adapter.loadThing(url);
}
startDNSDiscovery(adapter);
}
module.exports = loadThingURLAdapter;
Now, How to automate loadThing/unloadThing for manifest.moziot.config.urls devices ?