Skip to content

Continuously report temperature - No sensor reported #103

@paul-matthews

Description

@paul-matthews

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:

  1. Copy code snippet into onCreate.
  2. Run activity on a Pi 3 (with working other functions)

Expected:

  1. Observe logging of temperature sensor

Actual:

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions