Search found 18 matches

by andermutu99
Mon Nov 05, 2018 12:26 pm
Forum: General Discussion and Questions
Topic: Post method Micropython.
Replies: 4
Views: 13379

Post method Micropython.

Dear Community; I am trying to upload data to Adafruit.io using post method of urequests library. I have tried to options. I both I have ensured I am connected to wifi. The first method is this: import urequests as requests import json url = "https://io.adafruit.com/api/v2/username/feeds/battery/dat...
by andermutu99
Mon Nov 05, 2018 10:22 am
Forum: ESP32 boards
Topic: Post method ESP32
Replies: 2
Views: 2880

Post method ESP32

Dear Community; I am trying to upload data to Adafruit.io using post method of urequests library. I have tried to options. I both I have ensured I am connected to wifi. The first method is this: import urequests as requests import json url = "https://io.adafruit.com/api/v2/username/feeds/battery/dat...
by andermutu99
Fri Nov 02, 2018 5:46 pm
Forum: ESP32 boards
Topic: ESP32 module, wake_on_touch, wake_on_ext1
Replies: 6
Views: 9582

Re: ESP32 module, wake_on_touch, wake_on_ext1

Hi; I am interested in wake up ESP32 from touch pin. Have you found a solution? Thanks. I have the same problem that ESP32 resets immediately, however it worked sometimes (I have a video). But now it does not work, and the board resets after deep sleep. Any help is highly appreciated. import machin...
by andermutu99
Fri Nov 02, 2018 10:56 am
Forum: ESP32 boards
Topic: ESP32 module, wake_on_touch, wake_on_ext1
Replies: 6
Views: 9582

Re: ESP32 module, wake_on_touch, wake_on_ext1

Hi;

I am interested in wake up ESP32 from touch pin. Have you found a solution?

Thanks.
by andermutu99
Wed Oct 31, 2018 9:00 am
Forum: ESP32 boards
Topic: ESP32 RTC memory.
Replies: 0
Views: 1937

ESP32 RTC memory.

Dear Community; I am using an ESP32 as a low power data gathering station. I want to store the data I collect in the RTC memory until RTC memory is full. The problem is that I don't know how can I check whether it's full or not. For store data I use the following code: import machine rtc = machine.R...
by andermutu99
Fri Sep 28, 2018 4:58 pm
Forum: ESP8266 boards
Topic: Usocket port in ESP8266
Replies: 4
Views: 3156

Re: Usocket port in ESP8266

Your first version wasn't completely wrong, it just used the wrong arguments to connect() .See the documentation on how to do it correctly (section "Socket address format(s)": http://docs.micropython.org/en/latest/esp8266/library/usocket.html You second version works rather differently than the frs...
by andermutu99
Thu Sep 27, 2018 4:25 pm
Forum: ESP8266 boards
Topic: Usocket port in ESP8266
Replies: 4
Views: 3156

Re: Usocket port in ESP8266

I have found a solution, by code was WRONG completely. Server: #!/usr/bin/env python3 from socket import socket, gethostbyname, AF_INET, SOCK_DGRAM import time PORT_NUMBER = 12345 SIZE = 1024 hostName = gethostbyname( '0.0.0.0' ) mySocket = socket( AF_INET, SOCK_DGRAM ) mySocket.bind( (hostName, POR...
by andermutu99
Thu Sep 27, 2018 3:37 pm
Forum: ESP8266 boards
Topic: Usocket port in ESP8266
Replies: 4
Views: 3156

Usocket port in ESP8266

Dear Community; I am trying to transfer data using usocket module. I want to transfer data from ESP8266 to my computer. So in my computer I am running this python script: import socket # Import socket module s = socket.socket() # Create a socket object host = socket.gethostname() # Get local machine...