I want to do socket programming on python where I want to bind raspberry pi5 and esp32 with each other .esp32 continuously sending sring as raspberry pi response in rturn ,give me the code for this
My Internet search tool, primed with the query "Networking with Python: Socket Programming for Communication" found several links that might help. [Content is unchecked and not 'recommended'.]
https://realpython.com/python-sockets/
https://www.datacamp.com/tutorial/a-com ... -in-python
https://www.geeksforgeeks.org/socket-pr ... ng-python/
https://docs.python.org/3/howto/sockets.html
One of them begins with this explanation -
Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP (address) while the other socket reaches out to the other to form a connection.
So to implement a socket-based solution requires that there be a functioning IP network in place between the two devices.
And to implement an IP network requires appropriate physical network interfaces on the two devices, connected to each other and capable of exchanging information.
How have you provided those two prerequisites?
Statistics: Posted by B.Goode — Thu Feb 08, 2024 12:33 pm