Skip to content
Snippets Groups Projects
Commit 8d2f8597 authored by Strasser, Andreas's avatar Strasser, Andreas
Browse files

add peers to device registration

parent a7081902
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@ otaconf.init = def (m)
if device == self.get_mac()
content.push({'mac': device, 'type': 'ESP32', 'gateway': true})
else
content.push({'mac': device, 'type': 'ESP32', 'gateway': false})
content.push({'mac': device, 'type': 'ESP32', 'gateway': false, 'peers': [self.get_mac(), device]})
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment