as expected - beacon is a s sting. you split it at commas, so taxpower and rssi are strings. use float() to convert them to numeric values
txpower = float(beacon.split(",")[4]) rssi = float(beacon.split(",")[5])I believe this should make it work