You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the code snippet for Continuously reporting temperature sensor, no ambient temperature sensor is connected. However reading a single temperature value works fine. Is this library registering the driver for the Bmx280 on the board, because the sample doesn't cover it.
Repro steps:
Copy code snippet into onCreate.
Run activity on a Pi 3 (with working other functions)
Expected:
Observe logging of temperature sensor
Actual:
Observed logging only includes: "I/SensorManager: DYNS Register dynamic sensor callback"
No events triggered into the SensorEventListener instance
On further inspection (attempting to use the getDefaultSensor() ) no sensors exist.
The text was updated successfully, but these errors were encountered:
It seems the snippet you linked to is missing a call to registerTemperatureSensor(). For now, please refer to the Activity code in the Bmx280 driver sample, which demonstrates the same use case.
@plattysoft Not quite a duplicate (at least I don't think so), I think @paul-matthews issue is the code snippet is missing a call to registerTemperatureSensor(), so the sensor never actually becomes available.
Using the code snippet for Continuously reporting temperature sensor, no ambient temperature sensor is connected. However reading a single temperature value works fine. Is this library registering the driver for the Bmx280 on the board, because the sample doesn't cover it.
Repro steps:
Expected:
Actual:
On further inspection (attempting to use the getDefaultSensor() ) no sensors exist.
The text was updated successfully, but these errors were encountered: