Search found 41 matches
- Sun Oct 09, 2016 7:40 pm
- Forum: ESP8266 boards
- Topic: HTTP post function
- Replies: 3
- Views: 4302
Re: HTTP post function
I'm not familiar with the Thingspeak API but they probably want to you specify it as a header. You would accomplish this by adding a argument to your call to POST, like headers={"API-KEY":"MyAPIKey"}, assuming the name of the header they want is API-KEY and the value of your API Key is MyAPIKey. You...
- Sun Oct 09, 2016 7:09 pm
- Forum: ESP8266 boards
- Topic: Telnet Server
- Replies: 31
- Views: 34656
Re: Telnet Server
Thanks for finding that paste mode was busted @pythoncoder. I was able to fix it so paste mode should work now. The telnet client was writing null bytes into the stream that I wasn't stripping before handing them off to dupterm. The latest code has the fix. As for the multiple print statements I tri...
- Sun Oct 09, 2016 6:18 pm
- Forum: ESP8266 boards
- Topic: Telnet Server
- Replies: 31
- Views: 34656
Re: Telnet Server
I made a few improvements while investigating this but as far as I can tell this is a deficiency in the underlying dupterm handler in the firmware. For example, trying pasting the following into the WebREPL (or my telnet server), or any payload over 256 bytes: '**************************************...
- Sun Oct 09, 2016 4:55 am
- Forum: ESP8266 boards
- Topic: RFC: Not enabling WebREPL by default on boot in 1.8.6
- Replies: 21
- Views: 20944
Re: RFC: Not enabling WebREPL by default on boot
That seems pretty reasonable to me. I'm been planning to add authentication support to a telnet server I wrote and I was going to use the same credentials set for the WebREPL. Something you might consider is keeping the setup script slightly generic, maybe "import service_setup" instead of tying it ...
- Sun Oct 09, 2016 4:36 am
- Forum: ESP8266 boards
- Topic: HTTP post function
- Replies: 3
- Views: 4302
Re: HTTP post function
Try out this urequests library: https://github.com/micropython/micropyt ... equests.py. It supports POST requests and should allow you to specify anything else you might need for headers and such.
- Sat Oct 08, 2016 8:32 pm
- Forum: ESP8266 boards
- Topic: Support loading of .mpy files
- Replies: 13
- Views: 20647
Re: Support loading of .mpy files
It looks like this still isn't available in the main repository. Is there any downside to turning this on or reason why it would not be included in the main repository? If I understand correctly, frozen bytecode (which is now available) is still more desirable because the bytecode is executed from f...
- Sat Oct 08, 2016 3:02 am
- Forum: ESP8266 boards
- Topic: FTP Server
- Replies: 27
- Views: 33294
Re: FTP Server
Nice, thanks for continuing to share your changes. Even if our implementations end up diverging it's nice to have something to compare to. I took a look at the current state of yours and it makes sense to me and my only feedback might be to not depend on the uos module to track the cwd and instead t...
- Wed Oct 05, 2016 3:21 pm
- Forum: ESP8266 boards
- Topic: socket accept() does not (always) accept
- Replies: 2
- Views: 3188
Re: socket accept() does not (always) accept
You might want to try bumping up the backlog for queued connections. I noticed you currently have sock.listen(1) and with that at most one accept connection can be queued at a time. So if you have three connections, one being handled, one in queue, and another incoming the third will not be handled....
- Wed Oct 05, 2016 5:00 am
- Forum: ESP8266 boards
- Topic: Telnet Server
- Replies: 31
- Views: 34656
Telnet Server
I implemented a trivial telnet server for MicroPython/ESP8266 that will run in the background and give telnet clients access to the REPL. The code is here: https://github.com/cpopp/MicroTelnetServer I've only tested with the mac telnet client, but to use it you just throw utelnetserver.py on your ES...
- Tue Oct 04, 2016 8:32 pm
- Forum: ESP8266 boards
- Topic: Docker image
- Replies: 8
- Views: 8520
Re: Docker image
The Dockerfile looks like it is out of date and fails to build. I modified it enough to get it to work for me. I just had to tweak the installed dependencies and add a compilation step for mpy-cross FROM ubuntu:14.04 # Don't ask user options when installing env DEBIAN_FRONTEND noninteractive RUN ech...