RETOURNE 1 SI LE PORT SÉRIE NUMÉRO X EXISTE, 0 SINON
ACTION
La fonction SERIAL_PORT_EXISTS(X) retourne 1 si le port série numéro X existe, 0 sinon.
SYNTAXE :
Résultat = SERIAL_PORT_EXISTS(X)
UTILISATION ERREUR EXEMPLE
rem teste si le port série numéro 1 existe
if serial_port_exists(1)=1
print "le port série numéro 1 existe"
else
print "le port série numéro 1 n'existe pas"
end_if
SERIAL_PORT_EXISTS()
SERIAL_PORT_EXISTS(X)
EN RAPPORT
SERIAL
SERIAL_PORT
SERIAL_BAUDRATE
SERIAL_STOPBITS
SERIAL_DATABITS
SERIAL_PARITY
SERIAL_OPEN
SERIAL_CLOSE
SERIAL_WRITE
ON_RECEIVE
SERIAL_READ$()