Search found 29 matches

by lgyer
Mon Jun 21, 2021 10:26 am
Forum: General Discussion and Questions
Topic: UDP boardcast can Not be received
Replies: 10
Views: 8080

Re: UDP boardcast can Not be received

fe2o3 wrote:
Mon Jun 21, 2021 6:04 am
Both code segments work for me although my PC is running Linux.
(Still not understanding the '<broadcast>' string)

Your hotspot may not be passing UDP broadcasts.
Ah,it's a good news to me. I'll try to use another wifi.
by lgyer
Mon Jun 21, 2021 2:49 am
Forum: General Discussion and Questions
Topic: UDP boardcast can Not be received
Replies: 10
Views: 8080

Re: UDP boardcast can Not be received

gleria wrote:
Sat Jun 19, 2021 3:58 pm
Thanks for the interesting solution. I just have the same case.
Hi gleria

Did your hardware receive the UDP boardcast in this way? Could you please share your code?

Thanks
by lgyer
Mon Jun 21, 2021 2:47 am
Forum: General Discussion and Questions
Topic: UDP boardcast can Not be received
Replies: 10
Views: 8080

Re: UDP boardcast can Not be received

I thought I had posted this but... For receiving broadcasts, change your variable 'local_ip' in the client to either '0.0.0.0', which will permit broadcasts to be received on any IP address of the host or set it to the broadcast address for the network the broadcast is sent. For example, if your ho...
by lgyer
Fri Jun 18, 2021 5:34 am
Forum: General Discussion and Questions
Topic: UDP boardcast can Not be received
Replies: 10
Views: 8080

Re: UDP boardcast can Not be received

Can anyone give any hints?
by lgyer
Wed Jun 16, 2021 1:05 pm
Forum: General Discussion and Questions
Topic: UDP boardcast can Not be received
Replies: 10
Views: 8080

UDP boardcast can Not be received

Hi guys Does micropython support UDP boardcast mode? When I try to use udp boardcast to transfer some messages, but my server can't receive any message. But if I use unicast mode, it can work. The code as following: Server running in my hardware by using micropython import socket import time def do_...
by lgyer
Tue Jun 01, 2021 2:43 am
Forum: ESP32 boards
Topic: Suddenly no response from REPL
Replies: 4
Views: 2149

Re: Suddenly no response from REPL

davef wrote:
Mon May 31, 2021 8:57 am
On re-reading this ... do you mean when no program is running and that you are running rshell.
Hi davef

Thanks for your reply.
There was some code running, such as led blink.
by lgyer
Mon May 31, 2021 8:24 am
Forum: ESP32 boards
Topic: Suddenly no response from REPL
Replies: 4
Views: 2149

Re: Suddenly no response from REPL

Does anyone have any ideas?
by lgyer
Mon May 24, 2021 2:53 am
Forum: ESP32 boards
Topic: Suddenly no response from REPL
Replies: 4
Views: 2149

Suddenly no response from REPL

Hi guys, I am a novice of Micropython. I ran into a problem about the REPL. When I use the REPL to go into raw mode and type commands repeatly, the REPL does not display any output sometimes. And CTRL+C does not respond. When I use CTRL+D to restart the hardware, but there is still no log output aft...
by lgyer
Wed May 12, 2021 9:36 am
Forum: ESP32 boards
Topic: Is it feasible to use SD card to replace flash?
Replies: 1
Views: 1488

Is it feasible to use SD card to replace flash?

Hi guys

I am a novice. Because the maximum size of flash is 16MB in ESP32. I want to ask that, is it feasible to use SD card to replace flash to boot the esp32 and run?
Does the micropython to support this mode?
by lgyer
Thu Apr 29, 2021 2:43 am
Forum: Programs, Libraries and Tools
Topic: Every time the device restarts, the random number is a fixed value
Replies: 9
Views: 3929

Re: Every time the device restarts, the random number is a fixed value

Hi Roberthh

I really appreciate your help.
After I add that macro, it can work.

Thanks