Ребят подскажите. Столкнулся с такой проблемой.
Использую Visual Studio 2022 + vMicro (Arduino IDE).
Скачал расширение vMicro, у него оказался пробный бесплатный период пользования. Не знаю связано это как-то или нет, но после окончания пробного периода, нашел в интернетах "бесплатную" версию vMicro и столкнулся с проблемой.
VS стал подчеркивать стандартные библиотеки, типо не может их найти. Но самое интересное, что код компилиться без ошибок
Вот пример кода (код взят из библиотеки WiFi.h):
Код
#include <SPI.h>
#include <WiFi.h>
char ssid[] = "yourNetwork"; // the name of your network
int status = WL_IDLE_STATUS; // the WiFi radio's status
void setup() {
//Initialize serial and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// check for the presence of the shield:
if (WiFi.status() == WL_NO_SHIELD) {
Serial.println("WiFi shield not present");
// don't continue:
while (true);
}
String fv = WiFi.firmwareVersion();
if (fv != "1.1.0") {
Serial.println("Please upgrade the firmware");
}
// attempt to connect to WiFi network:
while (status != WL_CONNECTED) {
Serial.print("Attempting to connect to open SSID: ");
Serial.println(ssid);
status = WiFi.begin(ssid);
// wait 10 seconds for connection:
delay(10000);
}
// you're connected now, so print out the data:
Serial.print("You're connected to the network");
printCurrentNet();
printWifiData();
}
void loop() {
// check the network connection once every 10 seconds:
delay(10000);
printCurrentNet();
}
А вот как он выглядит в VS: