Yoctopuce Yocto-Thermocouple Mode D'emploi page 243

Table des Matières

Publicité

module→checkFirmware()
Teste si le fichier byn est valide pour le module.
function checkFirmware( path, onlynew)
js
string checkFirmware( string path, bool onlynew)
cpp
-(NSString*) checkFirmware : (NSString*)
m
string checkFirmware( path: string, onlynew: boolean): string
pas
function checkFirmware( ByVal
vb
string checkFirmware( string path, bool onlynew)
cs
String checkFirmware( String path, boolean onlynew)
java
async Task<string> checkFirmware( string path, bool onlynew)
uwp
checkFirmware( path, onlynew)
py
function checkFirmware( $path, $onlynew)
php
async checkFirmware( path: string, onlynew: boolean): Promise<string>
ts
async checkFirmware( path, onlynew)
es
string checkFirmware( string path, bool onlynew)
dnp
string checkFirmware( string path, bool onlynew)
cp
YModule
target
cmd
Cette méthode est utile pour vérifier si il est nécessaire de mettre à jour le module avec un nouveau
firmware. Il est possible de passer un répertoire qui contiens plusieurs fichier
methode retourne le path du fichier
vrais, les firmwares équivalents ou plus anciens que le firmware actuellement installé sont ignorés.
Paramètres :
path
le path d'un fichier
retourne uniquement les fichiers strictement plus récents
onlynew
Retourne :
le path du fichier
.byn
d'erreur, déclenche une exception ou retourne une chaine de caractère qui comment par "error:".
www.yoctopuce.com
: (bool)
onlynew
path
As String, ByVal
checkFirmware
path onlynew
compatible le plus récent. Si le parametre
.byn
.byn
ou d'un répertoire contenant plusieurs fichier
à utiliser, ou une chaîne vide si aucun firmware plus récent n'est disponible En cas
path
onlynew
As Boolean) As String
24. Référence de l'API de haut niveau
YModule
. Dans ce cas cette
.byn
onlynew
.byn
est
237

Publicité

Table des Matières
loading

Table des Matières