I try to make a pointer to a array uint8_t storeAddress [160]. But the compiler is compaining and I do not know why
#include <arduino.h>
uint8_t storeAddress [160];
int n =0;
uint8_t deviceAddress [8];
void ifAddressNew(int *nBezet, uint8_t address [], uint8_t *storeAddress[] ) {
}
void setup() {
// put your setup code here, to run once:
ifAddressNew(&n, deviceAddress, &storeAddress );
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino:1.8.13 (Windows 10), TD: 1.53, Board:"ESP32-WROOM-DA Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"
C:\Users\Gebruiker\Documents\Arduino\ThermostaatValidated_V1\sketch_jun14a\sketch_jun14a.ino: In function 'void setup()':
sketch_jun14a:13:35: error: cannot convert 'uint8_t ()[160]' {aka 'unsigned char ()[160]'} to 'uint8_t**' {aka 'unsigned char**'}
ifAddressNew(&n, deviceAddress, &storeAddress );
^~~~~~~~~~~~~
C:\Users\Gebruiker\Documents\Arduino\ThermostaatValidated_V1\sketch_jun14a\sketch_jun14a.ino:7:62: note: initializing argument 3 of 'void ifAddressNew(int*, uint8_t*, uint8_t**)'
void ifAddressNew(int *nBezet, uint8_t address [], uint8_t *storeAddress[] ) {
~~~~~~~~~^~~~~~~~~~~~~~
exit status 1
cannot convert 'uint8_t ()[160]' {aka 'unsigned char ()[160]'} to 'uint8_t**' {aka 'unsigned char**'}