Linking Error when compiling example codes


#1

Hardware: Node MCU V2

IDE: Zerynth Studio.

Hai my name is Kiran Francis. I am new to Zerynth and zerynth studio. I have an esp8266 with me and i was playing it with zerynth studio. I have registered and created a virtual machine for my device. I even ran the blinking example and it was working fine. Then i moved on with example ‘ WIFI CONNECT ’ provided in examples. I am pasting the following code below:

########################################################################

import streams

import the wifi interface

from wireless import wifi

import wifi support

from espressif.esp8266wifi import esp8266wifi as wifi_driver

streams.serial()

init the wifi driver!

The driver automatically registers itself to the wifi interface

with the correct configuration for the selected device

wifi_driver.auto_init()

use the wifi interface to link to the Access Point

change network name, security and password as needed

print(“Establishing Link…”)
try:

FOR THIS EXAMPLE TO WORK, “Network-Name” AND “Wifi-Password” MUST BE SET

TO MATCH YOUR ACTUAL NETWORK CONFIGURATION

wifi.link(“Network-name”,wifi.WIFI_WPA2,“password”)
print(“Link Established”)
except Exception as e:
print(“ooops, something wrong while linking :(”, e)
while True:
sleep(1000)

###################################################################

Note: I have not updated it with my wifi username and pasword.

However when i compile the above program, i get the error which i am pasting below:

Can anybody help me with this as soon as possible.

Regards,
Kiran Francis


#2

This seems to be a problem with the linker and compiler of esp8266 SDK.
I think this occurs due to some missing files in the compiler of the ESP8266 sDK in your installation.
I think reinstallation of Zerynth from scratch would solve that problem