Ccs811.Telemetry (ccs811 v0.4.0)

View Source

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts a periodic poller that generates telemetry events containing the sensor readings

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

poll_read()

start_link(args)

start_polling(args)

Starts a periodic poller that generates telemetry events containing the sensor readings

It supports additional arguments:

:period - polling period in seconds, default: 30

Any other additional argument will be passed to Ccs811.initialize()

Example:

Ccs811.start_polling(period: 60)

stop_polling()