Discover Packages
github.com/ebarkie/weatherlink
internal
device
package
Version:
v1.0.9
Opens a new window with list of versions in this module.
Published: Feb 28, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
IP represents a Weatherlink IP device.
Dial establishes a TCP/IP connection with a Weatherlink IP.
Flush flushes the input buffers of the Weatherlink IP.
Read reads up to the size of the provided byte buffer from the
Weatherlink IP. It blocks until at least one byte is read
or the timeout triggers. In practice, exactly how much it
reads beyond one byte seems unpredictable.
ReadFull reads the full size of the provided byte buffer from the
Weatherlink IP. It blocks until the entire buffer is filled
or the timeout triggers.
Write writes the byte buffer to the Weatherlink IP.
Serial represents a Weatherlink serial or USB device.
Dial opens a serial port connection with a weatherlink device.
ReadFull reads the full size of the provided byte buffer from the
Weatherlink device. It blocks until the entire buffer is filled
or the timeout triggers.
Sim represents a simulted Weatherlink device.
Close closes the simulated Weatherlink device.
Dial initializes the state of a simulated Weatherlink device.
Flush flushes the input buffers of the simulated Weatherlink device.
Read reads up to the size of the provided byte buffer from the
simulated Weatherlink device.
ReadFull reads the full size of the provided byte buffer from the
simulted Weatherlink device.
Write simulates a write of the byte buffer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.