Giter VIP home page Giter VIP logo

esp8266-luaupload's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

esp8266-luaupload's Issues

Problem with Telnetupload

Can not upload scripts via Telnet.

As you can see my Telnetserver is working, but the upload script can't connect.

Tilmans-MacBook-Pro:esp8266-luaupload Tilman$ telnet 192.168.1.7 2323
Trying 192.168.1.7...
Connected to 192.168.1.7.
Escape character is '^]'.
Welcome to NodeMcu world.
^]
telnet> close
Connection closed.
Tilmans-MacBook-Pro:esp8266-luaupload Tilman$ sudo python luaupload.py telnetupload init.lua -u 192.168.1.7:2323
Could not connect to 192.168.1.7:2323
Traceback (most recent call last):
  File "luaupload.py", line 89, in <module>
    cli()
  File "/Library/Python/2.7/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/Library/Python/2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Library/Python/2.7/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Python/2.7/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "luaupload.py", line 53, in telnetupload
    esp.upload(f.read(), {'filename': filename})
  File "/Users/Tilman/Documents/Programme/Python/esp8266-luaupload/luaupload/esp8266.py", line 41, in upload
    self.send('file.remove("{file}")\r\n'.format(file=espoptions['filename']))
  File "/Users/Tilman/Documents/Programme/Python/esp8266-luaupload/luaupload/esp8266.py", line 36, in send
    self.connection.send(data)
socket.error: [Errno 57] Socket is not connected

Can you please help me out, to fix this.
Thanks Til

Issues running Python

There is an assumption with many of these programs that people somehow "know" Python. I've installed it on my PC and it seems to work. I only know that because one of the loader programs works that allows us to send binary firmware to the WIFI boards. In this case, I'm getting some gripe about a DLL missing... it's there, where it should be in System32... which seems a little odd as it's the 64 bit version of Python... can't get passed the missing dll issue. Any chance of a Windows visual version which will allow us to simply paste in any amount of code and have it prefix and suffix?

Won't run on Ubuntu 14.10

python luaupload.py
Traceback (most recent call last):
File "luaupload.py", line 23, in
import click
ImportError: No module named click

python3 luaupload.py
Traceback (most recent call last):
File "luaupload.py", line 30, in
@click.group()
AttributeError: 'module' object has no attribute 'group'

Make work with Python 3

Currently when run with Python 3, this happens:

Traceback (most recent call last):
  File "./luaupload.py", line 89, in <module>
    cli()
  File "/usr/lib/python3.4/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.4/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.4/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.4/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.4/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "./luaupload.py", line 86, in upload
    esp.upload(f.read(), {'filename': filename})
  File "/home/liam/github/archimedespi/esp8266-luaupload/luaupload/esp8266.py", line 41, in upload
    self.send('file.remove("{file}")\r\n'.format(file=espoptions['filename']))
  File "/home/liam/github/archimedespi/esp8266-luaupload/luaupload/esp8266.py", line 34, in send
    self.connection.write(data)
  File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line 491, in write
    d = to_bytes(data)
  File "/usr/lib/python3.4/site-packages/serial/serialutil.py", line 76, in to_bytes
    b.append(item)  # this one handles int and str for our emulation and ints for Python 3.x
TypeError: an integer is required

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.