@mega-yfue/eufy-sdk / roomAtPoint
Function: roomAtPoint()
ts
function roomAtPoint(
outline,
rooms,
point
): VacuumRoom | undefined;The room at a world position, named — the join of the outline's room id with the room list.
Takes the outline and the room list separately because the device sends them separately, on two channels that arrive at different times: a caller holding one without the other gets undefined rather than a wrong answer.
Parameters
outline
rooms
point
Returns
VacuumRoom | undefined