Python Forum

Full Version: WiFi communication
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi , Im new to python . i want to send a data throw WiFi from my PC to RPi but i dont know how. can i use Socket library ? for example i want to update variable e in my python code on Raspberry , choose 25 om my phone and then e1 = 25 in RPi code , how can i do that? thanks a lot
There is a package that appears to be used quite a bit python wifi
pypi: https://pypi.org/project/python-wifi/
ReadTheDocs: https://wifi.readthedocs.io/en/latest/
python example: https://gist.github.com/taylor224/516de7dd0b707bc0b1b3
Is it necessary to do it with such low level tools (i.e. directly using sockets)? Why not just write a little Python web app and then you can use the browser on your phone to interact with it?