Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MyController::initialize() for Wemos D1 mini fails #5

Closed
njbuch opened this issue Feb 6, 2017 · 2 comments
Closed

MyController::initialize() for Wemos D1 mini fails #5

njbuch opened this issue Feb 6, 2017 · 2 comments

Comments

@njbuch
Copy link
Contributor

njbuch commented Feb 6, 2017

The device code works fine with some ESP8266 boards, but the Wemos D1 Mini board fails.

The culprit is the strcpy(nodeEui, WiFi.hostname().c_str()); line 89 of MyController.cpp, and I suspect the underlying libraries might have different behaviour in regards to the hostname field.

Not sure though.

@jkandasa
Copy link
Member

jkandasa commented Feb 6, 2017

@njbuch can you replace this line with some string and check it?

strcpy(nodeEui, "my-node-xyz");

@njbuch
Copy link
Contributor Author

njbuch commented Feb 6, 2017

It seems that enabling the factory reset, in the McConfig.h and the doing the factory reset, actually solved the problem. I guess it had something to do with weird configuration data somewhere in flash.

Closing.

@njbuch njbuch closed this as completed Feb 6, 2017
jkandasa added a commit that referenced this issue Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants