{"action":"closed","issue":{"url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/500","repository_url":"https://api.github.com/repos/marvinroger/homie-esp8266","labels_url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/500/comments","events_url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/500/events","html_url":"https://github.com/marvinroger/homie-esp8266/issues/500","id":303962936,"number":500,"title":"can't compile sketch","user":{"login":"kdhl","id":10278001,"avatar_url":"https://avatars2.githubusercontent.com/u/10278001?v=4","gravatar_id":"","url":"https://api.github.com/users/kdhl","html_url":"https://github.com/kdhl","followers_url":"https://api.github.com/users/kdhl/followers","following_url":"https://api.github.com/users/kdhl/following{/other_user}","gists_url":"https://api.github.com/users/kdhl/gists{/gist_id}","starred_url":"https://api.github.com/users/kdhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdhl/subscriptions","organizations_url":"https://api.github.com/users/kdhl/orgs","repos_url":"https://api.github.com/users/kdhl/repos","events_url":"https://api.github.com/users/kdhl/events{/privacy}","received_events_url":"https://api.github.com/users/kdhl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-09T20:01:09Z","updated_at":"2018-03-11T09:39:22Z","closed_at":"2018-03-11T09:39:22Z","author_association":"NONE","body":"I installed all libraries according to the 'getting started' and they show up in my 1.8.3 arduino IDE. I'm using a wemos d1 mini which works when I load the 'blink'.\r\nBut when i try to compile the 'bare minimum sketch' I get the error: 'endl' was not declared in this scope. Other examples bring different errors, 'TemperatureSensor' brings: Error compiling for board WeMos D1 D2 & mini, same error on 'LightOnOff' etc\r\n\r\nFull error message:\r\n_Arduino: 1.8.3 (Windows 7), Board: \"WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)\"\r\n\r\nd:\\Users\\bert\\Documents\\Arduino\\libraries\\homie-esp8266-1.5.0\\src\\Homie\\MqttClient.cpp: In member function 'void HomieInternals::MqttClient::initMqtt(bool)':\r\n\r\nd:\\Users\\bert\\Documents\\Arduino\\libraries\\homie-esp8266-1.5.0\\src\\Homie\\MqttClient.cpp:32:143: error: no matching function for call to 'PubSubClient::setCallback(std::_Bind_helper<false, void (HomieInternals::MqttClient::*)(char*, unsigned char*, unsigned int), HomieInternals::MqttClient* const, const std::_Placeholder<1>&, const std::_Placeholder<2>&, const std::_Placeholder<3>&>::type)'\r\n\r\n   this->_pubSubClient.setCallback(std::bind(&MqttClient::_callback, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3));\r\n\r\n                                                                                                                                               ^\r\n\r\nd:\\Users\\bert\\Documents\\Arduino\\libraries\\homie-esp8266-1.5.0\\src\\Homie\\MqttClient.cpp:32:143: note: candidate is:\r\n\r\nIn file included from d:\\Users\\bert\\Documents\\Arduino\\libraries\\homie-esp8266-1.5.0\\src\\Homie\\MqttClient.hpp:4:0,\r\n\r\n                 from d:\\Users\\bert\\Documents\\Arduino\\libraries\\homie-esp8266-1.5.0\\src\\Homie\\MqttClient.cpp:1:\r\n\r\nd:\\Users\\bert\\Documents\\Arduino\\libraries\\ESP8266_Microgear/PubSubClient.h:115:18: note: PubSubClient& PubSubClient::setCallback(void (*)(char*, uint8_t*, unsigned int))\r\n\r\n    PubSubClient& setCallback(MQTT_CALLBACK_SIGNATURE);\r\n\r\n                  ^\r\n\r\nd:\\Users\\bert\\Documents\\Arduino\\libraries\\ESP8266_Microgear/PubSubClient.h:115:18: note:   no known conversion for argument 1 from 'std::_Bind_helper<false, void (HomieInternals::MqttClient::*)(char*, unsigned char*, unsigned int), HomieInternals::MqttClient* const, const std::_Placeholder<1>&, const std::_Placeholder<2>&, const std::_Placeholder<3>&>::type {aka std::_Bind<std::_Mem_fn<void (HomieInternals::MqttClient::*)(char*, unsigned char*, unsigned int)>(HomieInternals::MqttClient*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>)>}' to 'void (*)(char*, uint8_t*, unsigned int) {aka void (*)(char*, unsigned char*, unsigned int)}'\r\n\r\nexit status 1\r\nError compiling for board WeMos D1 R2 & mini.\r\n\r\nThis report would have more information with\r\n\"Show verbose output during compilation\"\r\noption enabled in File -> Preferences.\r\n_\r\n\r\nNo doubt I'm doing something wrong, but what? Thanks in advance for your feedback."}}
{"actor":{"display_login":"kdhl"}}