Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WiFi communication
#1
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
Reply
#2
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
Reply
#3
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  RPi and smartphone Bluetooth communication GigiG 0 432 Mar-18-2025, 09:54 AM
Last Post: GigiG
  arduino and colaboratory with wifi rithikreddypalla 0 2,204 May-22-2021, 06:21 AM
Last Post: rithikreddypalla
  Wifi Camera Connection MeenAg 2 4,494 Oct-02-2020, 06:35 PM
Last Post: MeenAg
  packet radio communication EmpireAndrew 1 2,923 Nov-01-2019, 06:35 PM
Last Post: micseydel
  Serial Communication Error AlphyOuseph 1 4,494 Feb-07-2019, 07:16 AM
Last Post: DeaD_EyE
  pi3 serial communication tony1812 0 2,624 Sep-23-2018, 10:29 PM
Last Post: tony1812
  python-osc communication fauveboy 10 13,963 Jul-23-2018, 07:49 PM
Last Post: buran
  Wifi.Scan thenewguy 0 2,805 Mar-24-2018, 05:59 PM
Last Post: thenewguy
  Serial communication with a board Bokka 2 6,236 Dec-07-2017, 07:34 AM
Last Post: Bokka
  Serial port communication FatimaSameer 1 3,877 Oct-03-2017, 09:47 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020