multicast
This commit is contained in:
		
							parent
							
								
									c092d631b2
								
							
						
					
					
						commit
						8e8aaf382e
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								main.py
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								main.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -28,6 +28,7 @@ def main(device_path, dest_ip, dest_port):
 | 
			
		|||
 | 
			
		||||
        # Create a UDP socket
 | 
			
		||||
        sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
 | 
			
		||||
        sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, MULTICAST_TTL)
 | 
			
		||||
        print(f"Sending coordinates to {dest_ip}:{dest_port}")
 | 
			
		||||
 | 
			
		||||
        # Variables to store the latest coordinates
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue