##// END OF EJS Templates
Bug local_ip, set_active
Juan C. Espinoza -
r310:4c37291b233c
parent child
Show More
@@ -9,3 +9,4 PGDATA=/var/lib/postgresql/data
9 9 LC_ALL=C.UTF-8
10 10 TZ=America/Lima
11 11 DOCKER_DATA=/Volumes/dockers/radarsys/
12 LOCAL_IP=192.168.1.128
@@ -9,7 +9,7 import socket
9 9 import json
10 10 import requests
11 11 import struct
12 import sys, time
12 import os, sys, time
13 13
14 14 import multiprocessing
15 15
@@ -408,7 +408,7 class ABSConfiguration(Configuration):
408 408 return False
409 409 else:
410 410 self.message = "ABS Beams List have been sent to ABS Modules"
411 beams[0].set_as_activebeam()
411 self.active_beam = beams[0].pk
412 412
413 413 self.device.status = 3
414 414 self.module_status = ''.join(status)
@@ -490,7 +490,7 class ABSConfiguration(Configuration):
490 490 # Create the datagram socket
491 491 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
492 492 sock.settimeout(0.01)
493 local_ip = "0.0.0.0"
493 local_ip = os.environ.get('LOCAL_IP', '127.0.0.1')
494 494 sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(local_ip))
495 495 sent = sock.sendto(message, multicast_group)
496 496 print('Sending ' + message)
General Comments 0
You need to be logged in to leave comments. Login now