This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:fseropen [2017/04/05 14:12] jeff |
uphp:functions:fseropen [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 36: | Line 36: | ||
< | < | ||
- | ====Return | + | ====Return |
- | Upon success it returns a file handle | + | < |
- | If the attempt to open the serial 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 serial port at 115200 baud in non-blocking mode:** | + | ===Open the serial port at 115200 baud in non-blocking mode=== |
<code php> | <code php> | ||
Line 61: | Line 61: | ||
</ | </ | ||
- | ====See Also==== | + | ====Also |
[[how_tos: | [[how_tos: |