Go to the documentation of this file.
20 def get_ip_address(ifname):
21 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
22 return socket.inet_ntoa(fcntl.ioctl(
24 -1071617759, # SIOCGIFADDR
25 struct.pack('256s', ifname[:15].encode())
28 ip = get_ip_address('re0') # '192.168.0.110'
29 node.warn(f'IP of the device: {ip}')
30 node.io['end'].send(Buffer(32))
36 script->outputs[
"end"].link(xout->input);
XLinkOut node. Sends messages over XLink.
Represents the pipeline, set of nodes and connections between them.
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
std::shared_ptr< N > create()
void setProcessor(ProcessorType type)
Base message - buffer of binary data.
void setStreamName(const std::string &name)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19