getSensorInfoFromDevice method
Retrieves the installation information for the sensor.
This method sends a request to obtain the sensor installation information by constructing and sending a JSON payload. The installation information is made available through the returned stream.
Returns: A Stream of SensorInstallInfoEntity that emits updates regarding the sensor's installation information when data is received.
Note: Ensure to handle the stream properly to manage resources effectively. This method may block until the installation information is available.
Implementation
Stream<SensorInstallInfoEntity> getSensorInfoFromDevice() {
writeData(_buildSensorInstallInfoJson());
return _sensorInstallInfoStream.stream;
}