Search found 42 matches

by ZKDMun
Mon Jul 09, 2018 4:50 pm
Forum: ESP32 boards
Topic: RX/TX socket buffer sizes for ESP32?
Replies: 1
Views: 3068

Re: RX/TX socket buffer sizes for ESP32?

Some test results: I can create 8 different sockets. After this I will get an OSError21. For UDP-sockets: each UDP-socket can buffer up to 6 UDP-packets with 1472 bytes (MTU = 1500 bytes). If there are more than 1472 bytes of data in the UDP-packet, the packet will get lost. Every UDP-packet after 6...
by ZKDMun
Thu Jul 05, 2018 4:29 pm
Forum: ESP32 boards
Topic: RX/TX socket buffer sizes for ESP32?
Replies: 1
Views: 3068

RX/TX socket buffer sizes for ESP32?

Hi there,

what are the RX/TX socket buffer sizes for the ESP32?
And how many sockets are possible to handle on the ESP32 with MicroPython?
by ZKDMun
Sun Jun 24, 2018 11:35 am
Forum: ESP8266 boards
Topic: How to delete a static IP?
Replies: 2
Views: 2521

Re: How to delete a static IP?

On the WiPy it is possible to use sta.ifconfig(config="dhcp")? http://docs.micropython.org/en/latest/wipy/library/network.html?highlight=timeout#network.wlan.ifconfig But on the ESP8266? Doing a reset will be a solution - it works for this but I guess but it is not the best solution. import machine ...
by ZKDMun
Sun Jun 24, 2018 10:35 am
Forum: ESP8266 boards
Topic: How to delete a static IP?
Replies: 2
Views: 2521

How to delete a static IP?

Hi, I want to connect my ESP8266 to two different APs... on the first AP, the ESP8266 should have a static IP, but on the other AP it should be non-static. But after the connection to the first AP with a static IP, and doing sta.disconnect() #from the first AP sta.connect(<ESSID second AP>,<password...
by ZKDMun
Wed Jun 20, 2018 2:03 pm
Forum: ESP32 boards
Topic: ESP32 - unable to receive multicast if ESP32 is access point
Replies: 1
Views: 2481

ESP32 - unable to receive multicast if ESP32 is access point

First, my MCAST-sender-receiver code: #MCAST_ADDR = "239.255.255.250" MCAST_PORT = 9898 sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) sock.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) addr = socket.getaddrinfo("0.0.0.0",MCAST_PORT)[0][-1] sock.bind(addr) opt = bytes([239,255,255,250]...
by ZKDMun
Tue Jun 19, 2018 12:53 pm
Forum: ESP32 boards
Topic: How to combine bootloader.bin, partitions.bin and application.bin?
Replies: 1
Views: 3534

Re: How to combine bootloader.bin, partitions.bin and application.bin?

Found the combined firmware:
https://github.com/micropython/micropyt ... 2/Makefile (line 652)
To copy out the firmware bin file:

Code: Select all

cp ./build/firmware.bin /vagrant/
can be closed...
by ZKDMun
Tue Jun 19, 2018 12:27 pm
Forum: ESP32 boards
Topic: How to combine bootloader.bin, partitions.bin and application.bin?
Replies: 1
Views: 3534

How to combine bootloader.bin, partitions.bin and application.bin?

Hi there, to build a firmware for the ESP8266 I use this one: https://github.com/adafruit/esp8266-micropython-vagrant Like you can see in the README, the result will be an output "firmware-combined.bin". But for the ESP32 there are build three binary firmware images (bootloader.bin, partitions.bin a...
by ZKDMun
Mon Jun 18, 2018 2:57 pm
Forum: ESP8266 boards
Topic: How to receive more than one UDP-packet on a single socket?
Replies: 0
Views: 1408

How to receive more than one UDP-packet on a single socket?

With an UDP-Socket a server can receive a UDP-packet during "doing some stuff", and later read the packet from socket.recv(). For example: >>> import network >>> import socket >>> ap_if = network.WLAN(network.AP_IF) >>> ap_if.active(True) >>> s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) >>> s...
by ZKDMun
Thu Jun 14, 2018 5:14 pm
Forum: ESP8266 boards
Topic: WLAN.config(hidden="False") didnt work
Replies: 1
Views: 1817

Re: WLAN.config(hidden="False") didnt work

Found the solution: You can set WLAN.config(hidden= "True" ) or WLAN.config(hidden= True ) - both works. But you have to use WLAN.config(hidden= False ) to reverse this... WLAN.config(hidden= "False" ) didnt work. Inserting the boolean False as a string didnt work, just for setting it "True". And co...
by ZKDMun
Thu Jun 14, 2018 4:49 pm
Forum: ESP8266 boards
Topic: WLAN.config(hidden="False") didnt work
Replies: 1
Views: 1817

WLAN.config(hidden="False") didnt work

MicroPython-Version: "MicroPython v1.9.3-8-g63826ac5c on 2017-11-01" Hi there, I have changed the WLAN config last time to WLAN.config(hidden="True") - but now I am not able to reverse this. I have tried: WLAN.config(hidden="False") But after this I will always get: WLAN.config("hidden") >>> True I ...