Fix left overs after models refactor (#3)
Co-authored-by: Felipe Diniello <felipediniello@pm.me> Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
@@ -9,7 +9,6 @@ path = "test/all.rs"
|
||||
|
||||
[dependencies]
|
||||
paho-mqtt = { workspace = true }
|
||||
influxdb = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
dotenv = { workspace = true }
|
||||
chrono = { workspace = true }
|
||||
|
||||
@@ -3,7 +3,7 @@ use futures::stream::StreamExt;
|
||||
mod handler;
|
||||
mod position_solver;
|
||||
|
||||
use kairo_common::helper::for_async::{
|
||||
use kairo_common::mqtt::for_async::{
|
||||
get_mqtt_cli_and_stream, mqtt_cli_reconnect, mqtt_subscribe,
|
||||
};
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ pub async fn solve_for(device_id: MAC) -> Result<Point, ()> {
|
||||
.filter_map(|m| {
|
||||
if let Some(a) = antennas.get(&m.beacon_id) {
|
||||
let kd = KnownDistance {
|
||||
point: a.coord,
|
||||
point: a.coord(),
|
||||
dist: a.get_distance_with_W(m.rssi),
|
||||
};
|
||||
Some(kd)
|
||||
|
||||
Reference in New Issue
Block a user