Récupération d'une chaine de caratères sur arduino nano via bluetooth & Projet

Bonjour,

Tu n'as pas initialisé le port SoftwareSerial

port.begin(9600);

Quand tu fais
  commande = port.read(); // acquisition par le port seriele caractère est enlevé du buffer série.
Il ne faut donc pas faire  Serial.println(port.read());
Mais obligatoirement  Serial.println(commande);
En fait il vaudrait mieux faire  Serial.print(commande);

Pour tester la liaison, avant de faire un programme, utilises un terminal bluetooth pour envoyer des caractères
Personellement j'utilise Bluetooth Terminal