{"action":"closed","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/2611","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/2611/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/2611/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/2611/events","html_url":"https://github.com/arduino/Arduino/issues/2611","id":56976555,"number":2611,"title":"Official EthernetClient Sample Not Compiling - Ambiguous overload error with latest Arduino 1.0.6","user":{"login":"OzmoOzmo","id":6533854,"avatar_url":"https://avatars.githubusercontent.com/u/6533854?v=3","gravatar_id":"","url":"https://api.github.com/users/OzmoOzmo","html_url":"https://github.com/OzmoOzmo","followers_url":"https://api.github.com/users/OzmoOzmo/followers","following_url":"https://api.github.com/users/OzmoOzmo/following{/other_user}","gists_url":"https://api.github.com/users/OzmoOzmo/gists{/gist_id}","starred_url":"https://api.github.com/users/OzmoOzmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OzmoOzmo/subscriptions","organizations_url":"https://api.github.com/users/OzmoOzmo/orgs","repos_url":"https://api.github.com/users/OzmoOzmo/repos","events_url":"https://api.github.com/users/OzmoOzmo/events{/privacy}","received_events_url":"https://api.github.com/users/OzmoOzmo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arduino/Arduino/labels/Component:%20Documentation","name":"Component: Documentation","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"agdl","id":2743774,"avatar_url":"https://avatars.githubusercontent.com/u/2743774?v=3","gravatar_id":"","url":"https://api.github.com/users/agdl","html_url":"https://github.com/agdl","followers_url":"https://api.github.com/users/agdl/followers","following_url":"https://api.github.com/users/agdl/following{/other_user}","gists_url":"https://api.github.com/users/agdl/gists{/gist_id}","starred_url":"https://api.github.com/users/agdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agdl/subscriptions","organizations_url":"https://api.github.com/users/agdl/orgs","repos_url":"https://api.github.com/users/agdl/repos","events_url":"https://api.github.com/users/agdl/events{/privacy}","received_events_url":"https://api.github.com/users/agdl/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-02-09T00:38:09Z","updated_at":"2015-02-23T07:44:38Z","closed_at":"2015-02-23T07:44:38Z","body":"The code sample below - the official Arduino sample code.\r\nwill not compile:\r\n\r\n        http://arduino.cc/en/Reference/ServerAvailable\r\n\r\nMy public code libraries use the EthernetClient library like this - and same method I used is mentioned in several books and several ethernet sources - but it will not compile anymore on 1.0.6\r\n\r\n(I have tried official 1.0.6 and the nightly build ARDUINO 1.6.0rc3 - 2015.02.03)\r\n\r\nThe problem is EthernetClient cannot be tested for true/false anymore (it used to have a overloading that allowed you to query it being ready by using boolean comparitor). \r\n\r\nThe sample code has not worked since 1.0.5\r\n\r\nOfficial Sample Code: \r\n\r\n  EthernetClient client = server.available();\r\n  if (client == true) {  //compiler error here\r\n  }\r\n\r\n\r\nWhat is the correct new way to do this test now - and will the documentation be changed or the IDE/Compiler be changed back (best option)?\r\n\r\n\r\nThanks very much."}}