Search found 7 matches

by Netrosec
Tue Aug 27, 2019 7:27 am
Forum: General Discussion and Questions
Topic: uPython syntax errors
Replies: 11
Views: 7092

Re: uPython syntax errors

Noted. I'll look into that now.
by Netrosec
Mon Aug 26, 2019 5:55 pm
Forum: General Discussion and Questions
Topic: uPython syntax errors
Replies: 11
Views: 7092

Re: uPython syntax errors

I understand that uPython uses 2 spaces indentation as opposed to regular python which uses 4 spaces indentation. I have fixed the formatting problem.
by Netrosec
Mon Aug 26, 2019 5:13 pm
Forum: General Discussion and Questions
Topic: uPython syntax errors
Replies: 11
Views: 7092

Re: uPython syntax errors

Advice well taken. But the problem isn't yet resolved.
by Netrosec
Mon Aug 26, 2019 4:18 pm
Forum: General Discussion and Questions
Topic: uPython syntax errors
Replies: 11
Views: 7092

Re: uPython syntax errors

Netrosec wrote:
Mon Aug 26, 2019 4:13 pm
Roberthh wrote:
Mon Aug 26, 2019 4:04 pm
Please check what you posted. There is an except clause at the end without an matching try, and the indentation also seems wrong.
OK, so i checked and pasted your edited code and the error stopped. But ldr does not give me a reading..
Ooops. the error still persists.
by Netrosec
Mon Aug 26, 2019 4:13 pm
Forum: General Discussion and Questions
Topic: uPython syntax errors
Replies: 11
Views: 7092

Re: uPython syntax errors

Roberthh wrote:
Mon Aug 26, 2019 4:04 pm
Please check what you posted. There is an except clause at the end without an matching try, and the indentation also seems wrong.
OK, so i checked and pasted your edited code and the error stopped. But ldr does not give me a reading..
by Netrosec
Mon Aug 26, 2019 3:47 pm
Forum: General Discussion and Questions
Topic: uPython syntax errors
Replies: 11
Views: 7092

uPython syntax errors

I use uPyCraft on a esp8266 board. I am working with an mqtt example for uPython i adapted to publish a simple message when light levels drops below a given threshold but i get this error: exec(open(‘main.py’).read(),globals()) Traceback (most recent call last): File “<stdin>”, line 1, in <module> F...
by Netrosec
Wed Jan 17, 2018 7:24 pm
Forum: ESP8266 boards
Topic: mpfshell: remote shell for esp8266
Replies: 29
Views: 43522

Re: mpfshell: remote shell for esp8266

So here I am 2 years after this thread was started and I am so keen on finding out whether the mpfshell in its current development level can be imported and send remote commands to let's say a raspberry pi?
I'm an advance pi user but a baby esp8266 which I only learnt about some 4 months ago.