A RSSI-based method for real-time object localization in wireless sensor networks