Developing lightweight computation at the DSG edge

Commit 5f5cb1af authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[apidote] Read IPv4 addresses and Graphservers from AntidoteDB

Signed-off-by: default avatarRoger Pueyo Centelles <>
parent 451df24f
......@@ -145,6 +145,9 @@ func ReadDevicesFromAntidote() []cnml.DeviceIpv4sGraphserver {
var thisDev cnml.DeviceIpv4sGraphserver
thisDev.ID = thisDevID
thisDev.GraphServer, err = strconv.Atoi(AntidoteReadRegisterInBucket(fmt.Sprintf("device-%d", thisDevID), "graphserver"))
thisDev.Addresses = AntidoteReadItemsFromSetInBucket(fmt.Sprintf("device-%d", thisDevID), "ipv4s")
devices = append(devices, thisDev)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment