User Tools

Site Tools


uphp:functions:f485open

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:f485open [2017/04/10 12:35]
jeff
uphp:functions:f485open [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%;color:green">int <span style="font-size:125%;color:green">int
-<span style="color:black"> +<span style="color:black">f485open (
-</html> +
-[[f485open]] ( +
-<html>+
 <span style="color:green">int <span style="color:green">int
 <span style="color:blue">$baud<span style="color:black">, <span style="color:blue">$baud<span style="color:black">,
Line 19: Line 15:
 <span style="color:blue">$parity <span style="color:blue">$parity
 <span style="color:black">) <span style="color:black">)
-</html> +</html></well>
-</well>+
  
 Attempt to open the RS-485 port as a stream, and return the file handle for future operations Attempt to open the RS-485 port as a stream, and return the file handle for future operations
Line 32: Line 27:
 <html><b><span style="color:blue">$parity<span style="color:black"></b></html>:  0 (even parity) or 1 (odd parity) <html><b><span style="color:blue">$parity<span style="color:black"></b></html>:  0 (even parity) or 1 (odd parity)
  
-====Return Value====+====Return Values====
  
 <html><b><span style="color:green">Integer<span style="color:black"></b></html>:  File handle, or 0 if the attempt to open the RS-485 port fails <html><b><span style="color:green">Integer<span style="color:black"></b></html>:  File handle, or 0 if the attempt to open the RS-485 port fails
Line 40: Line 35:
 ====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>
uphp/functions/f485open.1491827744.txt.gz · Last modified: 2021/09/13 05:56 (external edit)