Acme WidgetsDocsTutorialAPIChangelogBlogCommunityGitHubDownload

acme.widgets.core — Widget objects

A Widget is the handle this library gives you for one physical device. It wraps a Transport, keeps a Session open while you work, and reports each measurement as a Reading. Read the Tutorial first if this is your first device.

Widget.__init__

Widget.__init__(frame, reading, profile)

Widget.__init__ is part of the stable API since version 1.0. It never blocks the event loop and it raises only the errors listed below.

See also: Session, Transport, Clock

Widget.open

Widget.open(channel, frame, reading)

Widget.open is part of the stable API since version 2.1. It never blocks the event loop and it raises only the errors listed below.

See also: Transport, Clock, Unit

Widget.close

Widget.close(profile, session, transport)

Widget.close is part of the stable API since version 3.2. It never blocks the event loop and it raises only the errors listed below.

See also: Clock, Unit, Error

Widget.ping

Widget.ping(reading, profile, session, timeout=...)

Widget.ping is part of the stable API since version 4.3. It never blocks the event loop and it raises only the errors listed below.

See also: Unit, Error, Event

Widget.reset

Widget.reset(event, buffer, device, timeout=...)

Widget.reset is part of the stable API since version 1.4. It never blocks the event loop and it raises only the errors listed below.

See also: Error, Event, Buffer

Widget.configure

Widget.configure(error, event, buffer)

Widget.configure is part of the stable API since version 2.5. It never blocks the event loop and it raises only the errors listed below.

See also: Event, Buffer, Device

Widget.subscribe

Widget.subscribe(device, channel, frame)

Widget.subscribe is part of the stable API since version 3.6. It never blocks the event loop and it raises only the errors listed below.

See also: Buffer, Device, Channel

Widget.unsubscribe

Widget.unsubscribe(buffer, device, channel)

Widget.unsubscribe is part of the stable API since version 4.7. It never blocks the event loop and it raises only the errors listed below.

See also: Device, Channel, Frame

Widget.status

Widget.status(transport, clock, unit)

Widget.status is part of the stable API since version 1.8. It never blocks the event loop and it raises only the errors listed below.

See also: Error, Event, Buffer

Widget.calibrate

Widget.calibrate(session, transport, clock)

Widget.calibrate is part of the stable API since version 2.9. It never blocks the event loop and it raises only the errors listed below.

See also: Event, Buffer, Device

Widget.connect

Widget.connect(buffer, device, channel, timeout=...)

Widget.connect is part of the stable API since version 3.0. It never blocks the event loop and it raises only the errors listed below.

See also: Event, Buffer, Device

Widget.read

Widget.read(device, channel, frame)

Widget.read is part of the stable API since version 4.1. It never blocks the event loop and it raises only the errors listed below.

See also: Error, Event, Buffer

Widget.write

Widget.write(error, event, buffer)

Widget.write is part of the stable API since version 1.2. It never blocks the event loop and it raises only the errors listed below.

See also: Device, Channel, Frame

Widget.fetch

Widget.fetch(event, buffer, device, timeout=...)

Widget.fetch is part of the stable API since version 2.3. It never blocks the event loop and it raises only the errors listed below.

See also: Buffer, Device, Channel

Widget.flush

Widget.flush(clock, unit, error)

Widget.flush is part of the stable API since version 3.4. It never blocks the event loop and it raises only the errors listed below.

See also: Transport, Clock, Unit

Widget.export

Widget.export(unit, error, event)

Widget.export is part of the stable API since version 4.5. It never blocks the event loop and it raises only the errors listed below.

See also: Session, Transport, Clock

Widget.snapshot

Widget.snapshot(session, transport, clock)

Widget.snapshot is part of the stable API since version 1.6. It never blocks the event loop and it raises only the errors listed below.

See also: Unit, Error, Event

Widget.restore

Widget.restore(transport, clock, unit)

Widget.restore is part of the stable API since version 2.7. It never blocks the event loop and it raises only the errors listed below.

See also: Clock, Unit, Error

Widget.describe

Widget.describe(clock, unit, error)

Widget.describe is part of the stable API since version 3.8. It never blocks the event loop and it raises only the errors listed below.

See also: Frame, Reading, Profile

Widget.__repr__

Widget.__repr__(unit, error, event)

Widget.__repr__ is part of the stable API since version 4.9. It never blocks the event loop and it raises only the errors listed below.

See also: Channel, Frame, Reading

See also

Previous topic: acme.widgets.config · Next topic: acme.widgets.events

Report a bug · Show source · Edit this page