bonjour . j essaye d envoyer des informations sur un réseau Hélium pour les envoyer sur WIFI a la fin . j'ai commencé a coder mais j ai eu cette erreur , je ne sais pas quoi faire . je pense il me manque une librairie.
![]()
Post mis dans la mauvaise section, on parle anglais dans les forums généraux. déplacé vers le forum francophone.
Merci de prendre en compte les recommandations listées dans Les bonnes pratiques du Forum Francophone
message d erreur complet :
In file included from C:\Users\user\Desktop\TER\TEST\TEST.ino:2:0:
c:\Users\user\Documents\Arduino\libraries\Disk91_LoRa-E5_library\src/disk91_LoRaE5.h:73:39: error: 'Uart' does not name a type; did you mean 'sqrt'?
#define __HWSERIAL_T Uart // type to be used for hardware serial, apprantly different are existing
^
c:\Users\user\Documents\Arduino\libraries\Disk91_LoRa-E5_library\src/disk91_LoRaE5.h:131:5: note: in expansion of macro '__HWSERIAL_T'
__HWSERIAL_T * e5Uart; // link to hw serial for E5 communications
^~~~~~~~~~~~
In file included from C:\Users\user\Desktop\TER\TEST\TEST.ino:2:0:
c:\Users\user\Documents\Arduino\libraries\Disk91_LoRa-E5_library\src/disk91_LoRaE5.h:132:5: error: 'Serial_' does not name a type; did you mean 'Serial'?
Serial_ * debugUart; // link to serial used for debugginf
^~~~~~~
Serial
c:\Users\user\Documents\Arduino\libraries\Disk91_LoRa-E5_library\src/disk91_LoRaE5.h:190:9: error: 'Serial_' has not been declared
Serial_ * logSerial = NULL // When set, the library debug is enabled
^~~~~~~
c:\Users\user\Documents\Arduino\libraries\Disk91_LoRa-E5_library\src/disk91_LoRaE5.h:194:18: error: expected ')' before '*' token
Serial_ * logSerial = NULL // When set, the library debug is enabled
^
In file included from C:\Users\user\Desktop\TER\TEST\TEST.ino:2:0:
c:\Users\user\Documents\Arduino\libraries\Disk91_LoRa-E5_library\src/disk91_LoRaE5.h:73:39: error: 'Uart' has not been declared
#define __HWSERIAL_T Uart // type to be used for hardware serial, apprantly different are existing
^
c:\Users\user\Documents\Arduino\libraries\Disk91_LoRa-E5_library\src/disk91_LoRaE5.h:201:9: note: in expansion of macro '__HWSERIAL_T'
__HWSERIAL_T * hwSerial = NULL, // for HWSERIAL_CUSTOM, link the associated Serial
^~~~~~~~~~~~
C:\Users\user\Desktop\TER\TEST\TEST.ino: In function 'void setup()':
C:\Users\user\Desktop\TER\TEST\TEST.ino:35:21: error: 'DSKLORAE5_SEARCH_WIO' was not declared in this scope
if (!lorae5.begin(DSKLORAE5_SEARCH_WIO)) {
^~~~~~~~~~~~~~~~~~~~
C:\Users\user\Desktop\TER\TEST\TEST.ino:35:21: note: suggested alternative: 'DSKLORAE5_HWSEARCH'
if (!lorae5.begin(DSKLORAE5_SEARCH_WIO)) {
^~~~~~~~~~~~~~~~~~~~
DSKLORAE5_HWSEARCH
exit status 1
Compilation error: 'DSKLORAE5_SEARCH_WIO' was not declared in this scope
Bonjour @bbg-bayrem, bienvenue sur le forum ![]()
Je ne pense pas ( c'est même sur
) que je puisse t'aider, car le wifi est un monde encore inconnu pour moi, mais pour que d'autres puissent le faire il faut suivre certaine règles... Un bandeau est mi en tête du forum, comme dit par @UKHeliBob, merci de le lire et de l'appliquer, dont le faite de fournir toutes les infos : codes entre les balises de code, essais déjà effectuer, etc...
Toutes mes excuses pour les fautes d'orthographe...
Cordialement
Pandaroux007
P.S : on évite généralement les captures d'écran, car illisibles...
Bonsoir bbg-bayrem
Est-ce que ton programme est fait pour un Arduino UNO?

Cordialement
jpbbricole
d accord merci
normalement oui
ok merci
Bonsoir bbg-bayrem
Alors, mets ton code en entier (entre les balises)
![]()
Cordialement
jpbbricole
#include <Arduino.h>
#include "disk91_LoRaE5.h"
Disk91_LoRaE5 lorae5(false); // true, false whatever
// best practice in terms of security (creadential are harder to be identified in the firwmare bytestream) and code size
uint8_t deveui[] = { 0x53, 0x75, 0x17, 0x14, 0xE9, 0x06, 0x37, 0x3A };
uint8_t appeui[] = { 0x46, 0x7B, 0x3C, 0x89, 0x4D, 0x58, 0x5E, 0xC6 };
uint8_t appkey[] = { 0x3C, 0x41, 0x33, 0xF4, 0x2D, 0x05, 0x40, 0xE5, 0x42, 0x3D, 0xCE, 0xC4, 0xD8, 0xEA, 0x44, 0x29 };
/*
// alternate solutions to declare credentials
char deveui[] = "DCXXXXXXXXXXXXEE";
char appeui[] = "CDXXXXXXXXXXXXAD";
char appkey[] = "2AXXXXXXXXXXXXA1XXXXXXXXXXXXXX43";
// another one
String deveui = "DCXXXXXXXXXXXXEE";
String appeui = "CDXXXXXXXXXXXXAD";
String appkey = "2AXXXXXXXXXXXXA1XXXXXXXXXXXXXX43";
*/
void setup() {
Serial.begin(9600);
uint32_t start = millis();
while (!Serial && (millis() - start) < 1500)
; // Open the Serial Monitor to get started or wait for 1.5"
// init the library, search the LORAE5 over the different WIO port available
if (!lorae5.begin(DSKLORAE5_SEARCH_WIO)) {
Serial.println("LoRa E5 Init Failed");
while (1)
;
}
// Setup the LoRaWan Credentials
if (!lorae5.setup(
DSKLORAE5_ZONE_EU868, // LoRaWan Radio Zone EU868 here
deveui,
appeui,
appkey)) {
Serial.println("LoRa E5 Setup Failed");
while (1)
;
}
}
void loop() {
static uint8_t data[] = { 0x01, 0x02, 0x03, 0x04 };
// Send an uplink message. The Join is automatically performed
if (lorae5.send_sync(
1, // LoRaWan Port
data, // data array
sizeof(data), // size of the data
false, // we are not expecting a ack
7, // Spread Factor
14 // Tx Power in dBm
)) {
Serial.println("Uplink done");
if (lorae5.isDownlinkReceived()) {
Serial.println("A downlink has been received");
if (lorae5.isDownlinkPending()) {
Serial.println("More downlink are pending");
}
}
}
delay(30000);
}
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
