Multiple Raspberry Pi Clients Talk to Pi Server with Python Socket.IO

preview_player
Показать описание

In filming I mentioned that Python 2.7 compatibility needs to be fixed. The maintainer of the project has decided to deprecate 2.7 support. While the change made at the time of this video works to get things going in 2.7 you should use Python 3 going forward with python-socketio. For details see

## Find Me on Twitch

## Chat With Me on Discord

Don't miss any of my Internet of Things Maker Journey:

Thanks so much for watching and if you want to experience even more of the journey here's where you can find me:

I respond to every single person and love hearing from you.
Рекомендации по теме
Комментарии
Автор

Great work Kevin, I am creating a time track and attendance system using RFID and Barcode over multiple clients. This gives me the confidence to proceed as I can now see a way to grasp the data. Thank you.

MarkHankinson
Автор

Hi Kevin, thank you for this helpful tutorial.

Would you plz tell me how I could send from server to client

ranariad
Автор

This would be a good solution if you only need a passive server receiving the requests. What if we want to send and receive some data from both sides (maybe using hostname or whatever)?

bhuvansharma
Автор

Kevin, thanks for this video! I am making a simple distributed system with 4 rasp pis for my graduate OS class. This is a great intro to sockets in python. Do you have more videos on this topic?

emilyhaigh
Автор

Hey Kevin. Great video. Is it possible to have multiple clients connected, then use the server to select just one to send a message or file to?

grezz
Автор

Hello Kevin ! This demo was very helpful for a project that I am working on right now. I have the same setup but with another additional angular web application component to display the data in real time as well. At the moment I am using a flask server with socketio. So I can communicate with both Pi and Web app using websockets. Do you have any suggestion for any alternate or better way ?

lahiruwelagedara
Автор

can i use socket.io to communicate between multiple RPi zeros and my computer?

BryanAsael
Автор

Is there a way to log the response or information return by the server on the client?

agent
Автор

Hello
Thank you for this great tutorial
How can I connect a Raspberry Pi to every room in Django Channel chat app?
Thank you very much for your tutorial

navidshahbazi
Автор

Hi,
Thanks a lot. Really Good video and able to understand and connect the RPi's . I want to connect server Pi with remote client PI and need to send and receive the data. Could you please help me to solve this?

vmgobinath
Автор

Hi, thanks for the video!
Is there any way when my server goes down and then start again of my raspberryPi connects automatically? For example, if Pi lost connection to the server, it will tries to connect to it in 5 seconds interval

thePeras
Автор

Thank you for this tutorial, I really appreciate it. Just exploring the world of MQTT and IoT and this provided me with the guidance I was looking for! However, I am having trouble when going to run my server.py script. I have an issue like the bug you showed above, but mine is a ModuleNotFoundError for the import of _ssl. I am running Python 3.7.0 and I have tried everything I have been able to find online and nothing has worked. Any ideas?

gvbvwockee
Автор

Insterd of Deleting "threading.current_thread() == threading.main_thread()" you could update it to == '_MainThread'

amitnair