@SenaPR Hello SenaPR, What I'm missing is in the auth= parameter of the connect statement the WiFi password of your router. I guess you just dropped that for showing th example..
And you cannot give your own device the IP address of the router, which is 192.168.1.1. So you must use something different, which is not in use at the moment, like 192.168.1.100. You have to ask the network administrator which addresses you may use.
Again, I see a problem with indentation. The last idle() statement is not indented properly and should raise an sytax error.
Are you sure that this boot.py is really loaded to your device? It has to, because is is executed before pymakr steps in. Otherwise, for testing you can give is a different name, like connect.py, and just put a statement like:
I do not trust the atom plugin.
Still: if your PC is connected to the office router, open the program cmd.exe, which gives you the good ol' MSDOS command prompt. At the prompt, enter the command:
That will tell you the netmask, the IP address of the router, and the IP-adress of the DNS-Service.
Not sure what operating system you are using... If you have Windows you could try VS Code instead of Atom. If you are on Windows, you should try using Atom version 1.18 with the Pymakr plugin.
More about Atom and Pymakr plugin issues on Github HERE
More info if you are using Windows 10:
The easiest way to fix this for Windows 10 is to downgrade to Atom 1.18, you can download it from here: https://github.com/atom/atom/releases?after=v1.19.0-beta5
half way down the page is version 1.18, I downloaded the AtomSetup.exe file for windows10.
Make sure you don't upgrade to 1.19 or above until the Pymakr plugin is fixed.
Also Atom is by default set to auto update so as soon as you open it, go to menu >>> help >>> about atom
Then un-check the "Automatically download updates"
Then install the Pymakr package. From Menu >>> Packages >>> Settings View >>> Install Packages
In the Install Packages search box, type in pymakr, it's down a couple in the search, press 'Install'
I had to remove the pymakr package manually because I had Atom previously installed. It's located something like c:\users\yourusername.atom\packages
I have it all working, now dealing with a serial port connection issue. Can't connect with all the default settings and the correct com port (com6 port etc... )
I got this to work on a different pc with windows 10, 32 bit installer of the the visual studio code (even though windows 10 install is a 64 bit install). 64 bit install of the visual studio code didnt work with the pymakr plugin for me.
Hi @rolandvs, thanks for reporting this. Atom is not really aware of the /flash or /sd directories, but uploads the code to where the REPL is running from. It could be that inserting the SD card makes the repl start from the /sd folder. I don't really have a solution to it right now, but I'll look in to it together with embedded.
I was using VSC for an extended period earlier today. The board kept losing connection to my PC. I had to keep resetting and re connecting. Eventually my PC crashed (bluescreen) with an error of "Memory Issue" or similar with root cause being ftser2k.sys which I think is the FTDI driver. The program I was working on involved reading a BLE beacon if that's relevant.
As this may be related to the issue I thought I would let you know.
BTW I switched to ATOM and am not having the same issue (so far!)