Search found 82 matches

by rpr
Wed Aug 21, 2019 2:57 am
Forum: ESP8266 boards
Topic: Control-C program via rshell etc
Replies: 10
Views: 1123

Re: Control-C program via rshell etc

Thanks for your code suggestions. The esp8266 has been running so far (about 3 days). I will probably let it go for a little while longer. Much appreciate your help.
by rpr
Mon Aug 19, 2019 10:17 pm
Forum: ESP8266 boards
Topic: Control-C program via rshell etc
Replies: 10
Views: 1123

Re: Control-C program via rshell etc

I'm taking sensor data from a dht22 and using Peter's mqtt_as module. Here is the code. It has been working perfectly for about 36 hours now. I'm going to let it run for a few more days to check. Though it would be nice to do a Ctrl-C. from mqtt_as import MQTTClient from configmqtt import config imp...
by rpr
Sun Aug 18, 2019 9:12 am
Forum: ESP8266 boards
Topic: Control-C program via rshell etc
Replies: 10
Views: 1123

Re: Control-C program via rshell etc

Peter, many thanks.

I've been using the nuclear option so far. A little annoying but worked. I will try out your more practical solution.
by rpr
Sun Aug 18, 2019 1:53 am
Forum: ESP8266 boards
Topic: Control-C program via rshell etc
Replies: 10
Views: 1123

Control-C program via rshell etc

I have an infinite loop running on my ESP8266 started at the end of my main.py. The program works fine and is sending data over mqtt. How can I interrupt it via rshell etc? rshell keeps waiting at the "Testing if ubinascii.unhexlify exists ..." How can I send a ctrl-C? Thanks for your help. This is ...
by rpr
Thu Aug 15, 2019 5:23 am
Forum: Programs, Libraries and Tools
Topic: uPydev - Command line tool for wireless Micropython devices
Replies: 2
Views: 785

Re: uPydev - Command line tool for wireless Micropython devices

I have used it in a somewhat limited fashion and I like it. Being able to create groups and access individual boards is a nice feature. It will really help in management of network of micropython boards.
by rpr
Wed Aug 14, 2019 4:21 pm
Forum: Programs, Libraries and Tools
Topic: uPydev - Command line tool for wireless Micropython devices
Replies: 2
Views: 785

Re: uPydev - Command line tool for wireless Micropython devices

This looks like a very comprehensive and useful tool. I will try it with my esp32 and esp8266 boards.
by rpr
Sun Aug 11, 2019 11:31 pm
Forum: ESP32 boards
Topic: Trouble connecting to SPI display sh1106
Replies: 9
Views: 1216

Re: Trouble connecting to SPI display sh1106

I don't have this board and have not used the SPI as well so my response may be naive. From the docs it appears that VSPI is at SPI(2).

http://docs.micropython.org/en/latest/e ... re-spi-bus
by rpr
Tue Aug 06, 2019 5:34 am
Forum: Development of MicroPython
Topic: C coding examples for MicroPython Functions and Methods
Replies: 3
Views: 2295

Re: C coding examples for MicroPython Functions and Methods

Just wanted to add that it does work in mainline micropython just fine.

PS: And Matt, nice talk at PyCon AU.
by rpr
Tue Jul 23, 2019 3:16 pm
Forum: ESP32 boards
Topic: esp32 internal temperature sensor
Replies: 7
Views: 2032

Re: esp32 internal temperature sensor

I am getting about 52 deg C. This is on a cold start with no processing except a repl. Not sure what the limits are. I think devices can do 60 deg C OK.
by rpr
Tue Jul 23, 2019 12:58 am
Forum: ESP32 boards
Topic: esp32 internal temperature sensor
Replies: 7
Views: 2032

Re: esp32 internal temperature sensor

The value is in deg Fahrenheit. import esp32 tf = esp32.raw_temperature() tc = (tf-32.0)/1.8 print("T = {0:4d} deg F or {1:5.1f} deg C".format(tf,tc)) That said, I saw this thread on github: https://github.com/espressif/arduino-esp32/issues/2422 , which mentions that this function is deprecated on n...