OPTION.MAC in ESP32

Here we can discuss about the problem found
User avatar
cicciocb
Site Admin
Posts: 2781
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 592 times
Been thanked: 1990 times
Contact:

Re: OPTION.MAC in ESP32

Post by cicciocb »

this post is named "OPTION.MAC in ESP32" but you are now talking about the ESP8266. :D

Anyway, I've just tested the ESP8266 1.50 and the mac changes without problem, the command

Code: [Local Link Removed for Guests]

OPTION.MAC "00:00:00:01:00:27"
works without the fix required for the ESP32 (onerror skip 1).

I can see that my router gives automatically another IP address when changing the MAC
image.png
The probable solution is :
In your program, you must first change the mac address and then use the command WIFI.CONNECT

Something like :

Code: [Local Link Removed for Guests]

OPTION.MAC "00:00:00:01:00:27"
WIFI.CONNECT .......
You do not have the required permissions to view the files attached to this post.
User avatar
Oli
Posts: 91
Joined: Tue Feb 09, 2021 10:07 am
Location: Germany, Meissen
Has thanked: 23 times
Been thanked: 62 times
Contact:

Re: OPTION.MAC in ESP8266

Post by Oli »

hi,

I have re-soldered my device to the ESP8266, after I gave up frustrated with the C3. everything works on the day until the evening, the next day the communication is dead. it just doesn't work anymore, no station and no AP, the IC calculates, surely I could program something with autoreboot.
I appreciate your offer and will send my address :-)
I would like to check this with not completely fake device, mine are already getting very hot.

I had also used the other sequence of MAC commands before. no error occurs on the first start, but it does not change the MAC, then the error occurs on the 2nd start. During your test I noticed that you were already connected. my config was completely empty, only the program connects. Now I have entered the router access data in the config, then the command works as expected.
That was our difference.
You do not have the required permissions to view the files attached to this post.
Last edited by Oli on Tue Oct 15, 2024 11:56 am, edited 1 time in total.
User avatar
cicciocb
Site Admin
Posts: 2781
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 592 times
Been thanked: 1990 times
Contact:

Re: OPTION.MAC in ESP32

Post by cicciocb »

Is not clear for ma what do you mean for 1st and 2nd start.
I have absolutely no issues with the autostart using your program as reference.

image.png
This is an ESP-01 esp8266
You do not have the required permissions to view the files attached to this post.
User avatar
Oli
Posts: 91
Joined: Tue Feb 09, 2021 10:07 am
Location: Germany, Meissen
Has thanked: 23 times
Been thanked: 62 times
Contact:

Re: OPTION.MAC

Post by Oli »

try it with empty settings, there comes the difference, (maybe the STA has already connected, and then no change ?)
You do not have the required permissions to view the files attached to this post.
Post Reply