This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:f485open [2017/04/05 13:56] jeff |
uphp:functions:f485open [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 7: | Line 7: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | <span style=" | + | <span style=" |
- | < | + | <span style=" |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
Line 27: | Line 27: | ||
< | < | ||
- | ====Return | + | ====Return |
- | Upon success it returns a file handle | + | < |
- | + | ||
- | If the attempt to open the RS-485 port fails it will return 0 | + | |
+ | The file handle may be used together with the other file functions that require a handle such as [[fgets()]], | ||
====Example==== | ====Example==== | ||
- | **Open the 485 port at 115200 baud with even parity:** | + | ===Open the 485 port at 115200 baud with even parity=== |
<code php> | <code php> |