Le Fichier Peut Ensuite Être Activé À L'aide De La Méthode - Yoctopuce Yocto-RS485-V2 Mode D'emploi

Table des Matières

Publicité

25. Référence de l'API de haut niveau
serialport→uploadJob()
Sauvegarde une définition de tâche (au format JSON) dans un fichier.
function uploadJob( jobfile, jsonDef)
js
int uploadJob( string jobfile, string jsonDef)
cpp
-(int) uploadJob : (NSString*)
m
LongInt uploadJob( jobfile: string, jsonDef: string): LongInt
pas
function uploadJob( ByVal
vb
int uploadJob( string jobfile, string jsonDef)
cs
int uploadJob( String jobfile, String jsonDef)
java
async Task<int> uploadJob( string jobfile, string jsonDef)
uwp
uploadJob( jobfile, jsonDef)
py
function uploadJob( $jobfile, $jsonDef)
php
async uploadJob( jobfile: string, jsonDef: string): Promise<number>
ts
async uploadJob( jobfile, jsonDef)
es
int uploadJob( string jobfile, string jsonDef)
dnp
int uploadJob( string jobfile, string jsonDef)
cp
YSerialPort
target
cmd
Le fichier peut ensuite être activé à l'aide de la méthode
Paramètres :
jobfile
nom du fichier de tâche sur le module
jsonDef
une chaîne de caractères contenant la définition du job en JSON
Retourne :
YAPI.SUCCESS
si l'opération se déroule sans erreur.
En cas d'erreur, déclenche une exception ou retourne un code d'erreur négatif.
412
jobfile
: (NSString*)
jsonDef
jobfile
As String, ByVal
uploadJob
jobfile jsonDef
jsonDef
As String) As Integer
.
selectJob()
YSerialPort
www.yoctopuce.com

Publicité

Table des Matières
loading

Ce manuel est également adapté pour:

Yocto-rs232

Table des Matières