Closed gmrock closed 9 months ago
Seems the issue is seen because of this method:
void establishWifi() {
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
delay(500);
}
}
If I comment this method out, the code compiles fine. Any clue what is wrong with wifi connection?
Seems I have figured out the issue:
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipicow
framework = arduino
board_build.core = earlephilhower
lib_deps =
fu-hsi/PMS Library@^1.1.0
knolleary/PubSubClient@^2.8
arcao/Syslog@^2.0.0
Had to use the board as board = rpipicow
instead of board = pico
. Will try and update the findings.
Closing this issue. The issue was with me setting the board incorrectly (it had to be set as rpipicow
). Working platformio.ini
:
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipicow
framework = arduino
board_build.core = earlephilhower
lib_deps =
fu-hsi/PMS Library@^1.1.0
knolleary/PubSubClient@^2.8
arcao/Syslog@^2.0.0
This helped - https://github.com/earlephilhower/arduino-pico/discussions/877
I'm trying out platformio with raspberry picow. With simple example, everything works fine.
However, when I start importing external libraries (defined above), I run into compilation error.
Below is the platformio.ini file:
includes are:
Error when compiling: