I have a header file that includes a typedef for a configuration struct:
typedef struct {
char idPrefix[8];
char defPass[16];
char targetSSID[32];
char targetPass[64];
uint8_t beepInRange;
uint8_t beepOutofRange;
} devConfig;
I want to assign a config variable in my ino file:
devConfig myConfig;
but when i try to access it in my setup or loop, it say ‘not defined in this scope’. e.g.:
void setup() {
strncpy(myConfig.defPass, “somepass”, 16);
}
spits out the “error: ‘myConfig’ was not declared in this scope” when I try to platform run
Does this thing not support global variables in the same way as arduino?