Search found 3 matches
- Mon Apr 24, 2017 5:11 pm
- Forum: General Discussion and Questions
- Topic: MicroPython round() Function
- Replies: 20
- Views: 26190
Re: MicroPython round() Function
Dave's explanation and solution are correct. Just to highlight the difference between the number and the display, take this example for which it wasn't obvious to me that the rounding function was working because the 2 least significant digits were the same (coincidentally): >>> round(68.79198,2) 68...
- Thu Mar 09, 2017 5:13 pm
- Forum: General Discussion and Questions
- Topic: possible to send command directly to WebREPL
- Replies: 15
- Views: 19320
possible to send command directly to WebREPL
Is there any trivial way to programmatically send a single command directly to WebREPL? For a simple, brute example, imagine that you need to reset the device. Your options are: 1) physically press reset button or 2) start a browser with the WebREPL client, press connect, login, and finally type:`ma...
- Thu Mar 09, 2017 5:49 am
- Forum: General Discussion and Questions
- Topic: umqtt/usocket questions
- Replies: 0
- Views: 1775
umqtt/usocket questions
I'm using version 1.8.7 on an ESP8266 board. I have a couple of questions about umqtt and usocket: 1. Would it be safe to use umqtt.simple.ping() in a timer callback? The umqtt ping function is simply `self.sock.write(b"\xc0\0")` so I think my root question is: does usocket.write allocate any memory...