π
<-
Chat plein-écran
[^]

platform.getDeviceID()?

Pour TI-Nspire OS 3.0 ou ultérieur.

platform.getDeviceID()?

Message non lude lazydog » 26 Avr 2016, 05:17

Hi! Recently I read the latest API Reference Guide and found a new function: platform.getDeviceID(). However, when I updated to OS 4.2, tried it on Jens' Script Editor, I couldn't find this function, even after I set apiLevel as '2.7'. Does anyone know what went wrong?
Thanks.
Dernière édition par lazydog le 26 Avr 2016, 05:24, édité 1 fois.
Avatar de l’utilisateur
lazydog
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Prochain niv.: 0%
 
Messages: 7
Inscription: 11 Juil 2014, 08:17
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: platform.getDeviceID()?

Message non lude Adriweb » 26 Avr 2016, 05:20

Hi,

In fact, this is pretty new (well, with 4.2, which reminds me I need to finish updating Inspired-Lua...!), and I suppose Jens' editor has an apilevel set to some fixed value, which wouldn't have this function.
If you remove the apilevel setting or juste create a new script in the latest computer software, it should work :)
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.2%
 
Messages: 14613
Images: 1218
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: platform.getDeviceID()?

Message non lude lazydog » 26 Avr 2016, 05:35

Adriweb a écrit:If you remove the apilevel setting or just create a new script in the latest computer software, it should work :)

I have changed apiLevel and...
Code: Tout sélectionner
require 'asi'
It works! (Though I don't have serial device to check whether it really works, it did load 'asi' as a table and the following elements.)

So I wonder if getDeviceID() works properly in OS 4.2.
Avatar de l’utilisateur
lazydog
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Prochain niv.: 0%
 
Messages: 7
Inscription: 11 Juil 2014, 08:17
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: platform.getDeviceID()?

Message non lude Adriweb » 26 Avr 2016, 05:44

It does, I've tested it and works fine on my CX CAS.
On the computer software, though, it gives an empty string IIRC, so be warned.
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.2%
 
Messages: 14613
Images: 1218
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: platform.getDeviceID()?

Message non lude lazydog » 26 Avr 2016, 10:13

Yeah, I created a new script in student software and it works finally. Thanks!
Avatar de l’utilisateur
lazydog
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Prochain niv.: 0%
 
Messages: 7
Inscription: 11 Juil 2014, 08:17
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile


Retourner vers Nspire-Lua

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 8 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1152 utilisateurs:
>1110 invités
>37 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)