Search found 216 matches

by torwag
Thu Aug 17, 2017 7:14 pm
Forum: ESP32 boards
Topic: MQTT
Replies: 8
Views: 3281

Re: MQTT

Hi, there is no need to recompile and reflash after doing it initially unlike : 1. one want to update micropython and the precompiled modules coming with it 2. want to add modules to the image, so called frozen bytecode, to have a customised version of mp or for memory safeing reasons. Micropython c...
by torwag
Wed Aug 16, 2017 9:24 pm
Forum: ESP32 boards
Topic: MQTT
Replies: 8
Views: 3281

Re: MQTT

The mqtt library does not come with the firmware. You have to install them first using e. g. upip or copy them manually to your board. Sorry for my brevity but I am on the road right now.
Hope it helps a bit.
by torwag
Mon Aug 14, 2017 8:07 am
Forum: ESP32 boards
Topic: ESP32 boards
Replies: 8
Views: 4766

Re: ESP32 boards

@chale welcome. you might want to consider using MQTT. This is a resource efficient protocol for machine to machine communication. It handles all kind of problems for you already. Furthermore, it is a standard and you will find apps for mobile phones as well as a lot of projects to try. However, it ...
by torwag
Mon Aug 07, 2017 2:16 pm
Forum: ESP8266 boards
Topic: HID library/module for ESP8266?
Replies: 8
Views: 10703

Re: HID library/module for ESP8266?

USB is a pretty big beast. Usually, it requires dedicated hardware to operate smoothly. The ESP does not have this hardware. It is not trivial to implement it in software only, esp. if the device itself is already very limited. Therefore, I agree with pythoncoder that the mentioned bit-banging USB-p...
by torwag
Mon Aug 07, 2017 1:23 pm
Forum: ESP8266 boards
Topic: HID library/module for ESP8266?
Replies: 8
Views: 10703

Re: HID library/module for ESP8266?

There are at least a few Dev boards that add a micro USB connector and chip to ease programming and powering the esp. Wemos D1 mini and Node MCU are two of those. But those are client only. The FTDI or whatever clone just converts the USB PC-side to the serial communication for the ESP. Therefore, ...
by torwag
Tue Aug 01, 2017 10:20 am
Forum: ESP8266 boards
Topic: [SOLVED] unable to get REPL prompt
Replies: 17
Views: 6274

Re: unable to get REPL prompt

Hi, I can just say that I flashed multiple D1 mini boards with daily git builds and face no problem. Maybe you could set the UART speed to 74880bps and see what the "garbage" is telling you. Other then this it could be simply a faulty device, or as Peter suggested a fraud device. There are images on...
by torwag
Tue Aug 01, 2017 9:59 am
Forum: ESP8266 boards
Topic: A "resilient" asynchronous MQTT client
Replies: 18
Views: 5438

Re: A "resilient" asynchronous MQTT client

Hi Peter, yes no link to the code yet. A bit work in progress and a bit shy to upload it yet (yeah it is still quite messy). I added a 2 seconds delay and I added a loop which is only left if the network is reported of being active. Nevertheless, I get this error right after power-up. import main or...
by torwag
Mon Jul 31, 2017 12:19 pm
Forum: ESP8266 boards
Topic: A "resilient" asynchronous MQTT client
Replies: 18
Views: 5438

Re: A "resilient" asynchronous MQTT client

Hi Peter, I got your MQTT-as working on a standard sonoff device. Even more, I was able to use your aswitch and Delay_ms functions to create a proper asynchronous function for the (on board) press button. Having a device as as small as sonoff and even three possible trigger with a single button is r...
by torwag
Fri Jul 28, 2017 9:08 am
Forum: ESP8266 boards
Topic: A "resilient" asynchronous MQTT client
Replies: 18
Views: 5438

Re: A "resilient" asynchronous MQTT client

Hi Peter, as I understood your main project, you are going to use the ESP as a MQTT-WIFI module, as it was intended orignally (plus the MQTT). Enabling any other controller to speak to a MQTT broker via wifi. Do I get this right? [EDIT] I got a bit confused until I reread your first statement in the...
by torwag
Tue Jul 11, 2017 7:26 pm
Forum: General Discussion and Questions
Topic: How to use scipy in micropython
Replies: 6
Views: 3012

Re: How to use scipy in micropython

Hi and welcome, there is not much you can do as their is and will never be a port of numpy and scipy to Micropython. These are very huge libraries, which will never fit on a microcontroller, both in terms of memory and in terms of complexity. The thing you can do, try to isolate what you want to do ...