-->
Page 1 of 1

get model # or type? i.e. check if device is esp01 vs 12e

PostPosted: Wed Sep 14, 2016 12:29 pm
by elRey
Hello,

Is there a way to return esp model num/type ? similar to getChipID() or macAddress() ?

I'd like to write code that can do different things based on which model it's flashed onto and have one code run on different models.

I don't think the first 3 bytes on the MAC Address will do.

Thanks,
Rey

Re: get model # or type? i.e. check if device is esp01 vs 12

PostPosted: Wed Sep 14, 2016 12:43 pm
by martinayotte
First, both ESP-01 and ESP-12 are using the same ESP8266 chip, so you can not make difference between both.

If you still want to check ChipID or MAC address, esptool.py has "chip_id" and "read_mac" option.

Re: get model # or type? i.e. check if device is esp01 vs 12

PostPosted: Wed Sep 14, 2016 2:30 pm
by elRey
Ahhhh. Thank you for your response. I guess I'll try deducting model from flash size and any other info I can get.

Thanks again.