MCPcopy Create free account
hub / github.com/bitcraze/crazyflie-lib-python / _server

Method _server

examples/cfbridge.py:77–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self._cf.send_packet(pk)
76
77 def _server(self):
78 while True:
79 print('\nwaiting to receive message')
80
81 # Only receive what can be sent in one message
82 data, address = self._sock.recvfrom(256)
83
84 print('received %s bytes from %s' % (len(data), address))
85
86 for i in range(0, len(data), 30):
87 self._forward(data[i:(i+30)])
88
89 def _stab_log_error(self, logconf, msg):
90 """Callback from the log API when an error occurs"""

Callers

nothing calls this directly

Calls 1

_forwardMethod · 0.95

Tested by

no test coverage detected