Search found 56 matches

by DJShadow1966
Fri Mar 13, 2020 6:51 am
Forum: ESP32 boards
Topic: Problem with machine.reset
Replies: 8
Views: 764

Re: Problem with machine.reset

Hello

Tried commenting the line out then the error of OSError: TCP/IP IF Not Ready drops down too sta_if.connect('*******', '********')

Regards Mike
by DJShadow1966
Thu Mar 12, 2020 9:19 pm
Forum: ESP32 boards
Topic: Problem with machine.reset
Replies: 8
Views: 764

Re: Problem with machine.reset

Hello Yeah that was my thought of adding a sleep_ms of various sizes before hand and still get the same error, and have edited my credentials as forgot them as was so caught up in troubleshooting the issue. It seems strange that the same code works fine on the same ESP32 but using IDF 3 instead of I...
by DJShadow1966
Thu Mar 12, 2020 2:22 pm
Forum: ESP32 boards
Topic: Problem with machine.reset
Replies: 8
Views: 764

Problem with machine.reset

Hello I have a problem with machine.reset when using an interupt to trigger the command machine.reset, the macine resets then I get the error File "main.py", line 4, in <module> OSError: TCP/IP IF Not Ready MicroPython v1.12-256-geae495a71 on 2020-03-12; ESP32 module with ESP32 Type "help()" for mor...
by DJShadow1966
Mon Feb 24, 2020 1:29 pm
Forum: General Discussion and Questions
Topic: [resolved]change name esp32 expressif
Replies: 2
Views: 279

Re: change name esp32 expressif

Hello Yes you can change the hostname this is what I use. import network, ntptime, utime, machine sta_if = network.WLAN(network.STA_IF) sta_if.active(True) # Next Line changes the hostname. sta_if.config(dhcp_hostname="ComputerTest2") sta_if.connect('*****', '*****') print("Connecting ") while not s...
by DJShadow1966
Wed Feb 19, 2020 7:27 am
Forum: ESP32 boards
Topic: ESP32 and MQTT
Replies: 9
Views: 1037

Re: ESP32 and MQTT

Hello On the code there currently is only one sensor that does humidty and Temperature, the code is part of my master code for multiple ESP32's dotted around my house thats why I have #ed out some code, it is still a work in progress. If I get some free time today I am going to be working on it to s...
by DJShadow1966
Wed Feb 19, 2020 6:11 am
Forum: ESP32 boards
Topic: ESP32 and MQTT
Replies: 9
Views: 1037

Re: ESP32 and MQTT

Hello Here is some code I use - First off all my main.py import network, ntptime, utime, machine sta_if = network.WLAN(network.STA_IF) sta_if.active(True) sta_if.config(dhcp_hostname="ComputerTest2") sta_if.connect('SSID', 'password') print("Connecting ") while not sta_if.isconnected(): print(".", e...
by DJShadow1966
Tue Feb 18, 2020 5:39 pm
Forum: ESP32 boards
Topic: ESP32 and LCD1602 with I2C
Replies: 2
Views: 347

Re: ESP32 and LCD1602 with I2C

Hello

Have a look at this post first reply tells you what you need - viewtopic.php?t=910

Mike
by DJShadow1966
Mon Feb 03, 2020 10:24 am
Forum: General Discussion and Questions
Topic: micropython.js how to run on webpage
Replies: 2
Views: 336

Re: micropython.js how to run on webpage

Hello

Many thanks for that, didn't need to run a python webserver as already running apache so all I need to now do is build the actal page, working on this tomorrow.

Regards Mike
by DJShadow1966
Mon Jan 27, 2020 9:36 am
Forum: General Discussion and Questions
Topic: micropython.js how to run on webpage
Replies: 2
Views: 336

micropython.js how to run on webpage

Hello U am trying to get the micropython.js to run in a webpage, I have followed the instructions to build the .js file and that works in node with no issues. Using the html code from the git repo I am only getting a blank page, nothing inside of it ? <!doctype html> <html> <head> <script src="/home...
by DJShadow1966
Tue Jan 07, 2020 9:26 am
Forum: Other Boards
Topic: Smart home and home Automation!
Replies: 14
Views: 1128

Re: Smart home and home Automation!

Hello So you would need to look at W5500 and can be sourced from https://uk.banggood.com/W5500-Ethernet-Network-Module-Hardware-TCPIP-Interface-51STM32-Program-Driver-Development-Board-p-982668.html?rmmds=search or LAN8720 https://uk.banggood.com/LAN8720-Module-Smart-Electronics-Network-Module-Ether...