Search found 38 matches

by MorseIot
Thu Aug 23, 2018 4:52 am
Forum: ESP32 boards
Topic: Frozen ESP32
Replies: 11
Views: 6097

Re: Frozen ESP32

jickster wrote:
Thu Aug 23, 2018 3:02 am
Does the file actually exist in the repository on the website?
I need to know which branch of esp-idf works with micropython for esp32

esp-idp
git checkout <branch>
by MorseIot
Wed Aug 22, 2018 3:10 am
Forum: ESP32 boards
Topic: Frozen ESP32
Replies: 11
Views: 6097

Frozen ESP32

Let's get into the problem. 1. I made the micropython clone git clone https://github.com/micropython/micropython.git checkout in version v1.9.4 2. in ports / esp32 I made the esp-idf clone git clone --recursive https://github.com/espressif/esp-idf.git git checkout v.3.0 git submodule update -init 3....
by MorseIot
Tue Aug 14, 2018 12:58 pm
Forum: ESP8266 boards
Topic: LmacRxBlk:1
Replies: 3
Views: 2419

LmacRxBlk:1

From time to time using urequests I get the error message OSError -2 and the message in loop LmacRxBlk:1. I only recover the ESP after resetting hardware

Any way to solve this problem ???
by MorseIot
Tue Aug 07, 2018 7:12 pm
Forum: ESP8266 boards
Topic: Poll class not working - urequest
Replies: 2
Views: 2156

Re: Poll class not working - urequest

Firstly, when you use urequests.get , it calls urequests.request , which already opens a connection, writes to it and reads the response headers. Setting the poll timeout afterwards is too late, if the server is slow in responding, the socket already blocks while reading the headers in urequests.re...
by MorseIot
Tue Aug 07, 2018 12:18 pm
Forum: ESP8266 boards
Topic: Poll class not working - urequest
Replies: 2
Views: 2156

Poll class not working - urequest

Example code: Urequest has no timeout parameter, I implemented the code below to use poll class response = urequests.get(url=API_ENDPOINT,headers=headers) sock = response.raw sock.setblocking(True) poller = uselect.poll() poller.register(sock,uselect.POLLIN) events = poller.poll(1000) # time in mil...
by MorseIot
Mon Aug 06, 2018 9:29 pm
Forum: ESP8266 boards
Topic: How can I enter the SSID and Password in ESP8266 using Android App ??
Replies: 1
Views: 1738

Re: How can I enter the SSID and Password in ESP8266 using Android App ??

Sample

Start esp8266 in ap mode, connect the cell to the esp8266 wifi network, in micro python develop a routine to receive SSID and severe pwd in esp8266. Then just read this file in station mode and connect to the wifi
by MorseIot
Fri Aug 03, 2018 2:02 am
Forum: ESP8266 boards
Topic: OSError: [Errno 103] ECONNABORTED using urequests
Replies: 7
Views: 12668

Re: OSError: [Errno 103] ECONNABORTED using urequests

First- the use of the SecretKey is only for this test (can be revoked) (site automacao-iot.com.br which is an IOT platform). Still, I could use this key to test the requests you're doing e.g. with CPython from my computer. Is this ok with you? Second - Use of sleep I believe not to be recommendable...
by MorseIot
Fri Aug 03, 2018 12:13 am
Forum: ESP8266 boards
Topic: OSError: [Errno 103] ECONNABORTED using urequests
Replies: 7
Views: 12668

Re: OSError: [Errno 103] ECONNABORTED using urequests

What am I doing wrong ???? You are posting sensitive information (SecretKey) on a public online forum? Does the error occur immediately when the while loops executed for the first time or only after some iterations? Anyway, be sure to put a sleep() in the loop, you're probably spamming the server w...
by MorseIot
Thu Aug 02, 2018 5:42 pm
Forum: ESP8266 boards
Topic: OSError: [Errno 103] ECONNABORTED using urequests
Replies: 7
Views: 12668

OSError: [Errno 103] ECONNABORTED using urequests

The following code, from time to time, displays the following error message : Code import network import urequests import gc from machine import freq freq(160000000) PublicKey= '8BA9FA35FEAF6A356893B577A44408A3' SecretKey = 'D23D16F1C34F170931894E4C7914121F78C538377BE9CD3F29CC845426B31991' def setNe...
by MorseIot
Thu Jul 26, 2018 3:38 pm
Forum: ESP8266 boards
Topic: How can I reuse Timer.ONE_SHOT in code.
Replies: 2
Views: 1873

Re: How can I reuse Timer.ONE_SHOT in code.

Bbasically the way I implemented this correct, different from the implementation used in the expressif: Timer.stop, Timer.start would be a good option for the project.

Thank you