klew wrote: Thu Jul 15, 2021 6:25 pm
Code: Select all
// Replace the following AUTHKEY with value that you can retrieve from: https://www.supla.org/arduino/get-authkey
char AUTHKEY[SUPLA_AUTHKEY_SIZE] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
Tutaj za znakiem = trzeba to wstawić
Tutaj chyba wszystko jest dobrze. Arduino IDE zaznacza linijkę w tej sekcji:
Code: Select all
SuplaDevice.begin(GUID, // Global Unique Identifier
"svr1.supla.org", // SUPLA server address
"email@address", // Email address used to login to Supla Cloud
AUTHKEY); // Authorization key
opis błędów:
Code: Select all
Arduino:1.8.13 (Windows 10), Płytka:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\jakub\Desktop\supla_projekt_dom\supla_projekt_dom.ino: In function 'void setup()':
supla_projekt_dom:57:28: error: no matching function for call to 'SuplaDeviceClass::begin(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, const char [4], const char [4], char [16])'
AUTHKEY); // Authorization key
^
In file included from C:\Users\jakub\Desktop\supla_projekt_dom\supla_projekt_dom.ino:2:0:
C:\Users\jakub\Documents\Arduino\libraries\SuplaDevice\src/SuplaDevice.h:90:8: note: candidate: bool SuplaDeviceClass::begin(char*, const char*, const char*, char*, unsigned char)
bool begin(char GUID[SUPLA_GUID_SIZE],
^~~~~
C:\Users\jakub\Documents\Arduino\libraries\SuplaDevice\src/SuplaDevice.h:90:8: note: candidate expects 5 arguments, 19 provided
C:\Users\jakub\Documents\Arduino\libraries\SuplaDevice\src/SuplaDevice.h:96:8: note: candidate: bool SuplaDeviceClass::begin(unsigned char)
bool begin(unsigned char version = 12);
^~~~~
C:\Users\jakub\Documents\Arduino\libraries\SuplaDevice\src/SuplaDevice.h:96:8: note: candidate expects 1 argument, 19 provided
exit status 1
no matching function for call to 'SuplaDeviceClass::begin(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, const char [4], const char [4], char [16])'
Ten raport powinien zawierać więcej informacji jeśli w
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"