Search found 220 matches

by torwag
Tue Aug 01, 2017 9:59 am
Forum: ESP8266 boards
Topic: A "resilient" asynchronous MQTT client
Replies: 18
Views: 16308

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: 16308

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: 16308

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: 9091

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 ...
by torwag
Sun Jul 09, 2017 8:33 pm
Forum: ESP8266 boards
Topic: Feedback on uart_swap implementation
Replies: 5
Views: 6977

Re: Feedback on uart_swap implementation

@Damien: Thanks that was exactly the feedback, I was looking for. I discussed this already with deshipu on IRC and he suggested to add this to the Uart init function as well. As people can basically switch forth and back at will during execution and as this is only about IO swapping (not buffer), I ...
by torwag
Tue Jul 04, 2017 8:15 am
Forum: ESP8266 boards
Topic: Feedback on uart_swap implementation
Replies: 5
Views: 6977

Feedback on uart_swap implementation

Hey, I just added and tested a function uart_swap for the esp8266 port. Was wondering what is the usual rule of implementation... should the python function map the original function of the SDK, in e.g. naming and functionality? Should I check how it is done in other ports (e.g. Arduino) to make sur...
by torwag
Tue Jun 27, 2017 9:14 am
Forum: Other Boards
Topic: Please add [board/SoC] in front of the subject of your topics
Replies: 0
Views: 31587

Please add [board/SoC] in front of the subject of your topics

Hi, as you post on the "other Boards" sub-forum please follow the rule and add, in square brackets, the board resp. the SoC/IC name to the subject. This helps people to filter out relevant topics about a certain unit and if makes it easier for the moderators to identify if there is a need for an ind...
by torwag
Sun Jun 25, 2017 3:34 pm
Forum: Other Boards
Topic: ESP32 topics moved to a new subforum
Replies: 0
Views: 31245

ESP32 topics moved to a new subforum

Dear Micropython users, A new subforum for MicroPython topics related to the ESP32 board was created. I will move all topics related to the ESP32 to the new forum. If you want us to move other topics, please let us know. Please use the new forum for all ESP32-MicroPython activities from now. Thanks ...
by torwag
Mon May 29, 2017 10:42 pm
Forum: ESP8266 boards
Topic: machine.Pin methods?
Replies: 13
Views: 18321

Re: machine.Pin methods?

Hi, for the on off vs high low I would need to check in detail. However for the inverted function, that is pretty much normal and depends how the LED is connected to the ESP. The ESP could basically apply 3.3V to the LED circuit via its GPIO pin. Then on really means on. However often, 3.3 V are app...