Why do I get this error when compiling this code.
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:21: note: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)'
79 | int begin(char* ssid, const char passphrase);
| ~~~~^~
Using these variables
const char ssid = "";
const char password = "";
It will not find the network or compile. If the variable is changed to
char ssid = "";
char password = "******";
It will compile and upload but it looks as if the values are not being passed and it will not connect to networ
try:
const char password[] = "******";
Post the whole code. Read the forum guidelines to see how to properly post code and information on how to get the most from this forum.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.