Skip to content

Cant even complile examples for wifi101 and arduino 101 #63

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

Closed
a2liter opened this issue Apr 30, 2016 · 2 comments
Closed

Cant even complile examples for wifi101 and arduino 101 #63

a2liter opened this issue Apr 30, 2016 · 2 comments

Comments

@a2liter
Copy link

a2liter commented Apr 30, 2016

When I try to compile the example sketch to scan for available networks I get the following error.

I am running IDE 1.6.9 hourly build 2016/04/28 4:33

The board I have selected is Arduino 101

I am running library wifi101 0.9.0

I have read through all the forum posts I can find and I think I am doing all the suggested fixes for this issue.

C:\Users\chris\Documents\Arduino\libraries\WiFi101\src\WiFiMdnsResponder.cpp: In member function 'bool WiFiMDNSResponder::parseRequest()':

C:\Users\chris\Documents\Arduino\libraries\WiFi101\src\WiFiMdnsResponder.cpp:152:61: error: 'memcmp_P' was not declared in this scope

 if (memcmp_P(request, expectedRequestHeader, HEADER_SIZE) == 0 &&            // request header match

                                                         ^

C:\Users\chris\Documents\Arduino\libraries\WiFi101\src\WiFiMdnsResponder.cpp:154:72: error: 'strncasecmp' was not declared in this scope

     strncasecmp(name.c_str(), (char*)requestName, requestNameLength) == 0 && // name match

                                                                    ^

exit status 1
Error compiling for board Arduino 101.

@akash73
Copy link

akash73 commented May 2, 2016

confirmed here, same behaviour.
first workaround is downgrade to 0.8.0 Wifi101 library version which works.

@sandeepmistry
Copy link
Contributor

I'm closing this as a duplicate of #51.

Now that arduino/ArduinoCore-arc32#159 has been merged, it will be resolved in the next 101 core release. Suggested work around for now is as @akash73 mentioned, downgrade to 0.8.0 of the library.

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

3 participants