Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erreur compilation #1

Open
mickaelr3003 opened this issue Sep 17, 2024 · 6 comments
Open

erreur compilation #1

mickaelr3003 opened this issue Sep 17, 2024 · 6 comments

Comments

@mickaelr3003
Copy link

mickaelr3003 commented Sep 17, 2024

bonjour j'ai ces erreurs quand je compile le programme MDL01
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:49:20: error: 'Serial1' was not declared in this scope
TeleInfo teleinfo(&Serial1);
^~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:49:20: note: suggested alternative: 'Serial'
TeleInfo teleinfo(&Serial1);
^~~~~~~
Serial
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino: In function 'void setup()':
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:73:3: error: 'Serial1' was not declared in this scope
Serial1.begin(1200);
^~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:73:3: note: suggested alternative: 'Serial'
Serial1.begin(1200);
^~~~~~~
Serial
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino: In function 'void loop()':
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:103:5: error: 'Serial1' was not declared in this scope
Serial1.end();
^~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:103:5: note: suggested alternative: 'Serial'
Serial1.end();
^~~~~~~
Serial
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:205:9: error: 'rl_config_t' was not declared in this scope
rl_config_t cnf;
^~~~~~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:205:9: note: suggested alternative: 'rl_configs_t'
rl_config_t cnf;
^~~~~~~~~~~
rl_configs_t
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:206:17: error: 'cnf' was not declared in this scope
memset(&cnf, 0, sizeof(cnf));
^~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:206:17: note: suggested alternative: 'scanf'
memset(&cnf, 0, sizeof(cnf));
^~~
scanf
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:209:35: error: 'S_TEXTSENSOR' was not declared in this scope
cnf.deviceType = (uint8_t)S_TEXTSENSOR;
^~~~~~~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:209:35: note: suggested alternative: 'E_TEXTSENSOR'
cnf.deviceType = (uint8_t)S_TEXTSENSOR;
^~~~~~~~~~~~
E_TEXTSENSOR
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:210:33: error: 'V_TEXT' was not declared in this scope
cnf.dataType = (uint8_t)V_TEXT;
^~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:210:33: note: suggested alternative: 'D_TEXT'
cnf.dataType = (uint8_t)V_TEXT;
^~~~~~
D_TEXT
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:213:35: error: 'S_NUMERICSENSOR' was not declared in this scope
cnf.deviceType = (uint8_t)S_NUMERICSENSOR;
^~~~~~~~~~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:213:35: note: suggested alternative: 'E_NUMERICSENSOR'
cnf.deviceType = (uint8_t)S_NUMERICSENSOR;
^~~~~~~~~~~~~~~
E_NUMERICSENSOR
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:214:33: error: 'V_NUM' was not declared in this scope
cnf.dataType = (uint8_t)V_NUM;
^~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:214:33: note: suggested alternative: 'D_NUM'
cnf.dataType = (uint8_t)V_NUM;
^~~~~
D_NUM
Plusieurs bibliothèque trouvées pour "SPI.h"
Utilisé: C:\Users\Mickael\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI
Non utilisé: C:\Users\Mickael\Documents\Arduino\libraries\SPI
exit status 1

Compilation error: 'Serial1' was not declared in this scope

@PM04290
Copy link
Owner

PM04290 commented Sep 18, 2024

@mickaelr3003 Tu configure bien pour compiler avec un Arduino Leonardo ? (comme indiqué dans la doc).

@mickaelr3003
Copy link
Author

Non comme la carte est montée avec un Arduino pro micro, j'ai compilé avec celle-ci.

@PM04290
Copy link
Owner

PM04290 commented Oct 3, 2024

@mickaelr3003 alors, avec la compilation Arduino Leonardo, ça donne quoi ?

@mickaelr3003
Copy link
Author

mickaelr3003 commented Oct 3, 2024

Désolé je n'avais pas le temps.
je viens de compiler avec arduino leonardo et j'ai ceci
`C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino: In function 'void loop()':
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:205:9: error: 'rl_config_t' was not declared in this scope
rl_config_t cnf;
^~~~~~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:205:9: note: suggested alternative: 'rl_configs_t'
rl_config_t cnf;
^~~~~~~~~~~
rl_configs_t
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:206:17: error: 'cnf' was not declared in this scope
memset(&cnf, 0, sizeof(cnf));
^~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:206:17: note: suggested alternative: 'scanf'
memset(&cnf, 0, sizeof(cnf));
^~~
scanf
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:209:35: error: 'S_TEXTSENSOR' was not declared in this scope
cnf.deviceType = (uint8_t)S_TEXTSENSOR;
^~~~~~~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:209:35: note: suggested alternative: 'E_TEXTSENSOR'
cnf.deviceType = (uint8_t)S_TEXTSENSOR;
^~~~~~~~~~~~
E_TEXTSENSOR
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:210:33: error: 'V_TEXT' was not declared in this scope
cnf.dataType = (uint8_t)V_TEXT;
^~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:210:33: note: suggested alternative: 'D_TEXT'
cnf.dataType = (uint8_t)V_TEXT;
^~~~~~
D_TEXT
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:213:35: error: 'S_NUMERICSENSOR' was not declared in this scope
cnf.deviceType = (uint8_t)S_NUMERICSENSOR;
^~~~~~~~~~~~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:213:35: note: suggested alternative: 'E_NUMERICSENSOR'
cnf.deviceType = (uint8_t)S_NUMERICSENSOR;
^~~~~~~~~~~~~~~
E_NUMERICSENSOR
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:214:33: error: 'V_NUM' was not declared in this scope
cnf.dataType = (uint8_t)V_NUM;
^~~~~
C:\Users\Mickael\Desktop\LoRa2HA-main\lora2ha-MLD01-Linky-ProMicro\lora2ha-MLD01-Linky-ProMicro.ino:214:33: note: suggested alternative: 'D_NUM'
cnf.dataType = (uint8_t)V_NUM;
^~~~~
D_NUM
Plusieurs bibliothèque trouvées pour "SPI.h"
Utilisé: C:\Users\Mickael\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI
Non utilisé: C:\Users\Mickael\Documents\Arduino\libraries\SPI
exit status 1

Compilation error: 'rl_config_t' was not declared in this scope`

@PM04290
Copy link
Owner

PM04290 commented Oct 4, 2024

La libraire RadioLink n'est pas à jour; il y a longtemps que tu l'as téléchargée ?

@mickaelr3003
Copy link
Author

je viens de la retelecharger sur : https://github.com/PM04290/RadioLink mais toujours le même problème

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants