Search found 18 matches

by rpi_nerd
Thu Dec 07, 2017 9:40 pm
Forum: ESP8266 boards
Topic: [SOLVED] unable to get REPL prompt
Replies: 17
Views: 4937

Re: [SOLVED] unable to get REPL prompt

Glad that my thread was able to help you bogd :)
by rpi_nerd
Thu Oct 12, 2017 6:02 pm
Forum: General Discussion and Questions
Topic: [SOLVED]onewire library converting ow.scan() output to an integer
Replies: 2
Views: 647

Re: onewire library converting ow.scan() output to an integer

Got it now, the links you posted helped. The problem surrounded around the variable that I stored the result of ow.scan() becoming a list object that resulted in errors when I tried to convert it, so I needed to copy the array to another variable. Once that was done, I was able to use int.from_bytes...
by rpi_nerd
Thu Oct 12, 2017 2:23 pm
Forum: General Discussion and Questions
Topic: [SOLVED]onewire library converting ow.scan() output to an integer
Replies: 2
Views: 647

[SOLVED]onewire library converting ow.scan() output to an integer

I've been playing around with the onewire library to read the keycode on my iButton (DS1995L-F5+) When I get the keycode from ow.scan() it gives me the output:

Code: Select all

bytearray(b'\n$\xb9\x1a\x00\x00\x00~') 
How to I convert the output to an integer?
by rpi_nerd
Wed Sep 13, 2017 5:33 pm
Forum: General Discussion and Questions
Topic: After upgrade firmware disappeared main.py
Replies: 3
Views: 844

Re: After upgrade firmware disappeared main.py

When you do a firmware update, I believe any existing files that you had on the device (such as main.py) get erased. I know that at least for the esp8266 firmware there is no main.py by default.
by rpi_nerd
Thu Sep 07, 2017 11:49 am
Forum: General Discussion and Questions
Topic: [SOLVED]Issue with sending data to webserver
Replies: 3
Views: 992

Re: [SOLVED]Issue with sending data to webserver

Fangus, your suggestion worked. It's been running for a few days now without any crashes.
by rpi_nerd
Sat Sep 02, 2017 2:57 am
Forum: General Discussion and Questions
Topic: [SOLVED]Issue with sending data to webserver
Replies: 3
Views: 992

Re: Issue with sending data to webserver

Thanks for the suggestion, fangus. I'll have to give it a try. It finally crashed again but it now gave me a different error:

Code: Select all

File "esp8266temptest4.py", line 110, in send_data
NameError: local variable referenced before assignment
It's referring to the last line in my function in my OP.
by rpi_nerd
Fri Sep 01, 2017 11:19 pm
Forum: General Discussion and Questions
Topic: [SOLVED]Issue with sending data to webserver
Replies: 3
Views: 992

[SOLVED]Issue with sending data to webserver

Murphy's law seems to strike again for me. My current project is simply sending some temperature data to my Pi with my Wemos D1 mini. I finally got everything working smoothly, or so I thought. After an hour or two of running a loop that reads the temp sensors and sends the readings to the webserver...
by rpi_nerd
Fri Sep 01, 2017 4:21 pm
Forum: General Discussion and Questions
Topic: [SOLVED] I2C reliability reading second byte issue
Replies: 2
Views: 785

Re: I2C reliability reading second byte issue

Thanks for the explanation, I'm seeing it now, WebREPL is formatting those numbers as asii characters, got it.
by rpi_nerd
Fri Sep 01, 2017 2:08 pm
Forum: General Discussion and Questions
Topic: [SOLVED] I2C reliability reading second byte issue
Replies: 2
Views: 785

[SOLVED] I2C reliability reading second byte issue

Been learning how to use i2c under Micropython. I've figured most of it out, but I have a frustrating issue with reliably receiving the second temperature data byte from my temperature sensor. I've even lowered the i2c frequency down to 1KHz and I'm still not receiving the second data byte occasiona...
by rpi_nerd
Thu Aug 17, 2017 11:50 pm
Forum: General Discussion and Questions
Topic: [SOLVED]issue with calling functions from a file
Replies: 2
Views: 768

Re: issue with calling functions from a file

Sorry for the late reply, had an urgent matter to attend to. I took another shot at it a few minutes ago, and now everything works fine; it must have been something stupid on my part (guessing that I didn't tab over correctly for a line of code, or something similar.) I was trying out the first exam...