Yoctopuce Yocto-RS485-V2 Mode D'emploi page 394

Table des Matières

Publicité

25. Référence de l'API de haut niveau
serialport→queryHex()
Envoie un message binaire sur le port série, et lit la réponse reçue.
function queryHex( hexString, maxWait)
js
string queryHex( string hexString, int maxWait)
cpp
-(NSString*) queryHex : (NSString*)
m
string queryHex( hexString: string, maxWait: LongInt): string
pas
function queryHex( ByVal
vb
string queryHex( string hexString, int maxWait)
cs
String queryHex( String hexString, int maxWait)
java
async Task<string> queryHex( string hexString, int maxWait)
uwp
queryHex( hexString, maxWait)
py
function queryHex( $hexString, $maxWait)
php
async queryHex( hexString: string, maxWait: number): Promise<string>
ts
async queryHex( hexString, maxWait)
es
string queryHex( string hexString, int maxWait)
dnp
string queryHex( string hexString, int maxWait)
cp
YSerialPort
target
cmd
Cette fonction est prévue pour être utilisée lorsque le module est configuré en protocole basé 'Frame'.
Paramètres :
le message à envoyer, en hexadécimal
hexString
maxWait
le temps maximum d'attente pour obtenir une réponse (en millisecondes).
Retourne :
la première trame reçu après l'envoi du message, en hexadécimal. Les trames suivantes peuvent être
obtenues avec des appels à readHex ou readMessages.
En cas d'erreur, déclenche une exception ou retourne une chaîne vide.
386
hexString
: (int)
maxWait
hexString
As String, ByVal
queryHex
hexString maxWait
maxWait
As Integer) As String
YSerialPort
www.yoctopuce.com

Publicité

Table des Matières
loading

Ce manuel est également adapté pour:

Yocto-rs232

Table des Matières