Search found 35 matches
- Fri Jun 02, 2017 8:36 pm
- Forum: ESP8266 boards
- Topic: Using persisting bytes array efficientlly
- Replies: 9
- Views: 8669
Re: Using persisting bytes array efficientlly
Problem with bytes is, that it is immutable collection: https://docs.python.org/3/library/functions.html#func-bytes . What that means is that part of it can't be changed, you have to create new object that will reflect those changes. If you, for example, changed single byte in bytes of length 1000, ...
- Sun May 28, 2017 8:16 pm
- Forum: ESP8266 boards
- Topic: Basic WebSocket example needed
- Replies: 3
- Views: 8931
Re: Basic WebSocket example needed
So, in the meantime I came up with decent implementation that handles multiple connections in sane way. You can find the code here: https://github.com/BetaRavener/upy-websocket-server . Like WebREPL, the server is started both on AP and STA and upon connection from browser it first serves webpage, w...
- Sat May 27, 2017 7:23 pm
- Forum: ESP8266 boards
- Topic: Basic WebSocket example needed
- Replies: 3
- Views: 8931
Basic WebSocket example needed
I have several projects for devices that I'd like to be able to be able to control through web browser, but I'd like them to be standalone - not a part of IoT network or anything. I'm using ESP8266, so I can just connect to the device directly as an AP. The device will then serve the web page to the...
- Sat May 27, 2017 7:22 pm
- Forum: ESP8266 boards
- Topic: Async TCP Server
- Replies: 3
- Views: 6945
Re: Async TCP Server
What's your problem exactly? Is it not working in non-blocking mode? If so, what is the issue - does it stop executing script, you get an error or something else? I can see a problem with your code when you use non-blocking mode. You start to listen and then periodically check connection. In blockin...
- Mon Sep 19, 2016 9:29 pm
- Forum: ESP8266 boards
- Topic: Why ESP8266?
- Replies: 8
- Views: 7085
Re: Why ESP8266?
Also price? I missed kick-starter campaigns and just hopped on the train recently after learning that $2 chip can run Python and I was quite intrigued by that possibility. However, I highly doubt I'd be buying pyboard for my embedded project. I think it's too expensive for just placing it in the gar...
- Sat Sep 03, 2016 10:19 am
- Forum: ESP8266 boards
- Topic: Peak Current Consumption (Power Profile)
- Replies: 3
- Views: 6187
Re: Peak Current Consumption (Power Profile)
Ah sure, I know what you mean now. I have too seen a video with those spikes, guy tried there different (larger and larger) caps before smoothing them out eventually. Here it is (talking about peaks around 3:00 and caps at 4:00): https://www.youtube.com/watch?v=6SdyImetbp8 . So considering his exper...
- Fri Sep 02, 2016 11:59 pm
- Forum: ESP8266 boards
- Topic: Peak Current Consumption (Power Profile)
- Replies: 3
- Views: 6187
Re: Peak Current Consumption (Power Profile)
I have accidentally stumbled upon answer to your question when looking around for options on powering ESP8266 from battery. It seems that the guys at Esperiff already did this and if you look into datasheet (which is strangely hosted by adafruit and has "confidential" all over it) page 10, you'll pr...
- Mon Aug 29, 2016 5:56 pm
- Forum: ESP8266 boards
- Topic: Querying USB port
- Replies: 5
- Views: 5171
Re: Querying USB port
For esptool, you need to have also Python2 installed (version 2.7 is the most recent I think). Personaly, I use Anaconda (https://www.continuum.io/downloads) where you can basically create any environment and choose version of Python, but basic installation of Python 2.7 for windows will do. Then, y...
- Mon Aug 29, 2016 3:42 pm
- Forum: ESP8266 boards
- Topic: Querying USB port
- Replies: 5
- Views: 5171
Re: Querying USB port
Normally on windows you would open device manager and look for your daughter board. Next to the name of the board should be the COM port it was assigned (something like this: http://www.sharpcam.co.uk/Images/Control-Panel13.jpg). Also, if you have esptool already installed, you could try using uPyLo...
- Mon Aug 29, 2016 10:28 am
- Forum: ESP8266 boards
- Topic: SyntaxError at boot with esp8266-20160809-v1.8.3.bin
- Replies: 4
- Views: 4537
Re: SyntaxError at boot with esp8266-20160809-v1.8.3.bin
I had the same error when I switched from some older version of 1.8.2 to 1.8.3. I was also using something different at that time, not esptool. Cleaning flash and flashing the image with esptool solved the problem for me, so try running these 2 commands first (and replace the name of the image if ne...