Magnetometer→Get_Hardwareid(); Retourne L'identifiant Matériel Unique Du Magnétomètre Au Format; Serial.functionid - Yoctopuce Yocto-3D-V2 Mode D'emploi

Module électronique de 51x20mm qui dispose d'un accéléromètre, d'un gyroscope et d'un magnétomètre
Table des Matières

Publicité

24. Référence de l'API de haut niveau
magnetometer→get_hardwareId()
magnetometer→hardwareId()
Retourne l'identifiant matériel unique du magnétomètre au format
function get_hardwareId( )
js
string get_hardwareId( )
cpp
-(NSString*) hardwareId
m
function get_hardwareId( ) As String
vb
string get_hardwareId( )
cs
String get_hardwareId( )
java
get_hardwareId( )
py
function get_hardwareId( )
php
async get_hardwareId( ): Promise<string>
ts
async get_hardwareId( )
es
string get_hardwareId( )
dnp
string get_hardwareId( )
cp
L'identifiant unique est composé du numéro de série du module et de l'identifiant matériel du
magnétomètre (par example
Retourne :
une chaîne de caractères identifiant le magnétomètre (ex:
E n
c a s
d ' e r r e u r ,
YMagnetometer.HARDWAREID_INVALID
418
RELAYLO1-123456.relay1
d é c l e n c h e

SERIAL.FUNCTIONID

).
RELAYLO1-123456.relay1
u n e
e x c e p t i o n
.
YMagnetometer
.
)
o u
r e t o u r n e
www.yoctopuce.com

Publicité

Table des Matières
loading

Ce manuel est également adapté pour:

Yocto-3d

Table des Matières