Skip to content

v0.9.0 does not build on the Arduino 101 and Due #51

Closed
@sandeepmistry

Description

@sandeepmistry
/Users/smistry/Documents/Arduino/libraries/WiFi101/src/WiFiMdnsResponder.cpp: In member function ‘bool WiFiMDNSResponder::parseRequest()’:
/Users/smistry/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
                                                             ^
/Users/smistry/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
  1. The Arduino 101 does not provide memcmp_P in avr/pgmspace.h

  2. There is no strncasecmp method.

The AVR and SAMD cores build fine, however SAM core also experiences 1).

@facchinm any thoughts on how to proceed with this? This breakage was introduced in #47.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions