I tried opening a text file from a shared folder in python on my PC with [code]f = open("//JOHNPC/Shared/test.txt", 'r').read()[/code] and it works perfectly, but when i try to execute exactle the same command on an esp8266 with micropython installed and connected to the exact same wifi network as my PC it gives me this error: [code]OSError: [Errno 2] ENOENT[/code]. Does anybody know how to make it work?

It would take a considerable amount of work. First you need to reverse-engineer the SMB protocol that Windows uses to share the drives. Then you would need to implement it with MicroPython's limited resources. All in all, for a team of 10 very experienced programmers, I would say it's a project for 2-3 years of work.

The open source solutions both for accessing and producing SMB-compatible network locations already exist. So at least the reverse engineering part has been done where needed. The real problem is 'just' the porting of that that code to whatever microcontroller. Which might simply be undoable (infinite years of work if you will) because of the lack of resources. But if there would be, I doubt it would take years for multiple programmers.

@unclenorton I'd look at the problem in a different way. You want to be able to communicate between an ESP8266 and a PC across a WiFi network. This requires a communications protocol. Options supported by MicroPython - either officially or unofficially - are FTP, HTTP, MQTT, Telnet and probably others.

Rather than tackle an unsupported protocol I'd consider the problem you're trying to solve and figure out which supported protocol provides the best fit. We can probably help if you tell us more.