![Freenove Raspberry Pi 2 Model B Manual Download Page 92](http://html.mh-extra.com/html/freenove/raspberry-pi-2-model-b/raspberry-pi-2-model-b_manual_2330437092.webp)
Need support?
90
Chapter 4 Robot Dog
www.freenove.com
█
Reference
For more code details, please
open “Server.py”
in Server folder to check.
get_interface_ip()
This function can get the IP address of WLAN0 of the Raspberry Pi.
turn_on_server()
This function is used to open TCP and wait for a client connection. The channel of port 5000 is mainly used
to send and receive commands between the client and server. The channel of port 8000 is used to send
video data to the client.
turn_off_server()
This function is used to close TCP.
send_data()
This function is used to send commands to the client.
reset_serve()
This function is used to close TCP and restart.
transmission_video()
This function is used to transmit video data to the client.
receive_instruction()
This function is used to receive commands from the client
Summary of Contents for Raspberry Pi 2 Model B
Page 35: ...Need support support freenove com 33 Chapter 0 Raspberry Pi Preparation www freenove com ...
Page 71: ...Need support support freenove com 69 Chapter 2 Assemble Robot www freenove com M3 Nut M3x12 ...
Page 98: ...Need support support freenove com 96 Chapter 4 Robot Dog www freenove com ...