10
edits
m (added direct link to forge) |
m (Serial opening time parameters) |
||
Line 46: | Line 46: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Some properties can be set at opening time | |||
{{Code|Serial port example: constructor call|<syntaxhighlight lang="octave" style="font-size:13px"> | {{Code|Serial port example: constructor call|<syntaxhighlight lang="octave" style="font-size:13px"> | ||
s2 = serial("/dev/ttyS0", 9600, | s2 = serial("/dev/ttyS0", 9600, 10) # Opens serial port ttyS0 in | ||
# 9600 baudrate with 1s read timeout | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
edits