NodeMCU Wi-Fi bağlanamıyor

Deniz w

Hectopat
Katılım
25 Kasım 2020
Mesajlar
198
Daha fazla  
Cinsiyet
Erkek
C:
print (wifi.sta.getip())
wifi.setmode(wifi.STATION)
wifi.sta.config("wifi adı","wifi şifresi")
print(wifi.sta.getip())

Bu kodu Arduino IDE'de compile edince Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" sketch_mar12a:1:7: error: expected constructor, destructor, or type conversion before '(' token print (wifi.sta.getip()) ^ exit status 1 expected constructor, destructor, or type conversion before '(' token This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Böyle bir hata veriyor. Driver ve gerekli dosyalar var. Sorun nerededir acaba?
 
Son düzenleyen: Moderatör:

Technopat Haberler

Geri
Yukarı