Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Ble Distance Problem
#8
Actually it will not work, because of line 36-37. change lines 36-38 to

if 0 <= calculate_accuracy(txpower, rssi) < 2:
    print beaconid
eventually I would also replace lines#33-35 with
beacon = beacon.split(',')
beaconid = beacon[0]
txpower = float(beacon[4])
rssi = float(beacon[5])
Reply


Messages In This Thread
Python Ble Distance Problem - by aleynasarcanli - Feb-09-2018, 01:16 PM
RE: Python Ble Distance Problem - by buran - Feb-09-2018, 02:53 PM
RE: Python Ble Distance Problem - by aleynasarcanli - Feb-09-2018, 08:30 PM
RE: Python Ble Distance Problem - by buran - Feb-09-2018, 08:34 PM
RE: Python Ble Distance Problem - by aleynasarcanli - Feb-09-2018, 09:57 PM
RE: Python Ble Distance Problem - by buran - Feb-09-2018, 10:03 PM
RE: Python Ble Distance Problem - by aleynasarcanli - Feb-09-2018, 10:09 PM
RE: Python Ble Distance Problem - by buran - Feb-09-2018, 10:10 PM
RE: Python Ble Distance Problem - by buran - Feb-09-2018, 10:12 PM
RE: Python Ble Distance Problem - by buran - Feb-09-2018, 10:24 PM
RE: Python Ble Distance Problem - by aleynasarcanli - Feb-09-2018, 10:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Visualize Geo Map/Calculate distance zarize 1 2,448 Dec-05-2019, 08:36 PM
Last Post: Larz60+
  euclidean distance jenya56 3 3,738 Mar-29-2019, 02:56 AM
Last Post: scidam
  How to use servo motor with TFMini Distance Sensor in python script? programerguy 1 3,943 Dec-04-2018, 04:57 PM
Last Post: Larz60+
  organizing by distance gonzo620 7 5,405 Oct-16-2018, 01:41 AM
Last Post: stullis

Forum Jump:

User Panel Messages

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