var pollingRate : MWFrequency
var signalName : MWNamedSignal
MWDataTable
.Framework
protocol MWPollable : MWReadable
To start polling, use the .stream()
or .log()
operators. These are available on a Publisher
whose output is a Meta
, including:
These operators accept MWPollable
instances constructed by autocompletion, such as humidity(oversampling:
, or directly, such as init(oversampling:
.
Direct construction may be useful for patterns where you persist user selected settings or organize arbitrarily large logging or streaming sessions. Our open-source MetaBase 5 app provides an example in ActionVM.swift of starting logging and streaming sessions with arbitrary mixes of MWPollable
, MWStreamable
, and MWLoggable
sensors with merged outputs.
Unless you construct your own sensor wrappers, this protocol’s details are unlikely to be important to you.
var pollingRate : MWFrequency
var signalName : MWNamedSignal
MWDataTable
.func pollCleanup (board: MWBoard)
func pollConfigure (board: MWBoard)
func pollSensorSignal (board: MWBoard) throws -> MWDataSignal ?
static func humidity(oversampling: MWHumidity.Oversampling, rate: MWFrequency) -> Self
Self
is MWHumidity
.static func thermometer(rate: MWFrequency, type: MWThermometer.Source, board: MWBoard) throws -> Self
Self
is MWThermometer
.MWDataConvertible
MWReadable
Swift.Equatable
Swift.Hashable
protocol MWCommand
protocol MWCommandWithResponse
protocol MWLoggable
protocol MWReadable
protocol MWReadableMerged
protocol MWStreamable
struct MWFrequency